Page 1 of 1

Sort arrays, lists, and maps in variableViewer!

Posted: Thu Jan 22, 2026 12:25 pm
by ChrisR
When debugging in variableViewer, arrays, lists, and maps are not sorted by name by default.

In VariableDebug.pb, the default sorting is done wiith

Code: Select all

      ; Set default sorting values (name column, ascending)
      ;
      *Debugger\ArraySortColumn         = 0
      *Debugger\ArraySortDirection      = 1
      *Debugger\LocalArraySortColumn    = 1
      *Debugger\LocalArraySortDirection = 1
      *Debugger\ListSortColumn          = 0
      *Debugger\ListSortDirection       = 1
      *Debugger\LocalListSortColumn     = 1
      *Debugger\LocalListSortDirection  = 1
It is sorted by name if I change it to

Code: Select all

      ; Set default sorting values (name column, ascending)
      ;
      *Debugger\ArraySortColumn         = 1
      *Debugger\ArraySortDirection      = 1
      *Debugger\LocalArraySortColumn    = 1
      *Debugger\LocalArraySortDirection = 1
      *Debugger\ListSortColumn          = 1
      *Debugger\ListSortDirection       = 1
      *Debugger\LocalListSortColumn     = 1
      *Debugger\LocalListSortDirection  = 1
      *Debugger\MapSortColumn           = 1
      *Debugger\MapSortDirection        = 1
      *Debugger\LocalMapSortColumn      = 1
      *Debugger\LocalMapSortDirection   = 1

But seeing the 0 written, is there a reason why arrays, lists, and maps are not sorted by name by default?
Otherwise, if needed, I am ready for a PR