summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wizards/source/scriptforge/SF_Array.xba1
1 files changed, 1 insertions, 0 deletions
diff --git a/wizards/source/scriptforge/SF_Array.xba b/wizards/source/scriptforge/SF_Array.xba
index 1b5ae92df523..c0c9a21827e4 100644
--- a/wizards/source/scriptforge/SF_Array.xba
+++ b/wizards/source/scriptforge/SF_Array.xba
@@ -1883,6 +1883,7 @@ Check:
Try:
lMin = LBound(Array_1D)
lMax = UBound(Array_1D)
+ If lMax < lMin Then GoTo Finally ' Do nothing if the input array is empty
vIndexes() = SF_Array._HeapSort(Array_1D, ( SortOrder = "ASC" ), CaseSensitive)
' Load output array