ari173 Posted December 18, 2019 Share Posted December 18, 2019 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 More sharing options...
Nine Posted December 18, 2019 Share Posted December 18, 2019 (edited) 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 December 18, 2019 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
ari173 Posted December 19, 2019 Author Share Posted December 19, 2019 Thank you very much for your response. After some additional modifications in my Code it works for my Project too. great Job. Link to comment Share on other sites More sharing options...
Nine Posted December 19, 2019 Share Posted December 19, 2019 Thank M23 for his UDF “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now