Jump to content

TreeView Sort dont work proper


ari173
 Share

Recommended Posts

Hi Community,

I use autoit for a very long time and I am very impressed about it.

Now, for the first time, I cant find a solution and cant resolve this problem by my self.

I load "Location Information" about Clients from .conf files (in my example I create an Array with testdata to Show the Problem).

The Client files are sorted alphabetically, so the "Location Info" ist collected randomly.

The TreeView is used to collect clients in the same Location together, without duplicate location entries.

But the sort function result is not what i expect.

Hope someone can help. Thank you.

upload.au3

Link to comment
Share on other sites

Agree with you.  Use instead :

 

Tested with your data, works perfect.  Place those 3 lines at start of your script (before TreeView creation).

Global $aSortData[][] = [[0,0],[1, 0],[2, 0],[3, 0],[4, 0]]
_ArrayMultiColSort($aClient, $aSortData)
$aClient[0][0] = 5

and remove _GUICtrlTreeView_Sort ($hTreeview).  Set the number base-0 after sort.

Edited by Nine
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...