Jump to content

_ArrayDisplay column sorting?


Recommended Posts

The help text for the _ArrayDisplay function says: "Clicking on a column header sort it."

I'm wondering why the sorting of hex numbers (specifically window handles like 0x12345678) is so wonky.

Sample script:

#include <Array.au3>
Local $aList = WinList()
_ArrayDisplay($aList)

Clicking on the Col1 header to sort by window handle doesn't properly sort the list.

As a workaround, I'm sorting the array by window handle before displaying it using _ArraySort. But I still wonder what's up with the ListView sorting.

Workaround:

#include <Array.au3>
Local $aList = WinList()
_ArraySort($aList, 0, 1, 0, 1)
_ArrayDisplay($aList)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...