Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit dddd103

Browse files
committed
[[ Bug 17476 ]] Use numeric sort for keys in SE variables list
Made an update to `revsevariablespanebehavior.livecodescript` In the `setDefaultsAndCallbacks` handler, set the `sortType` for the tree widget to `numeric`. With the updated sort logic in the widget that will have the numeric keys sort at the top of lists but also sort non-numeric keys alphabetically.
1 parent 1ce3a70 commit dddd103

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Toolset/palettes/script editor/behaviors/revsevariablespanebehavior.livecodescript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,5 +528,6 @@ private command setDefaultsAndCallbacks
528528
set the cCallbackTarget of tFilter to the long id of me
529529
set the cPlaceholderText of tFilter to "Search variables..."
530530

531-
set the pathdelimiter of widget "tree" of me to numToCodepoint(0)
531+
set the pathDelimiter of widget "tree" of me to numToCodepoint(0)
532+
set the sortType of widget "tree" of me to "numeric"
532533
end setDefaultsAndCallbacks

notes/bugfix-17476.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Use numeric sort for variables/keys in SE variables lists

0 commit comments

Comments
 (0)