Sort arrays, lists, and maps in variableViewer!

Everything else that doesn't fall into one of the other PB categories.
User avatar
ChrisR
Addict
Addict
Posts: 1551
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Sort arrays, lists, and maps in variableViewer!

Post 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