CGRemakes 0 Posted November 30, 2010 I'm attempting to make it so when someone clicks on a header it sorts the information correctly. Most info is just a string, so we're fine there, but there are 2 columns that are dates (one that is a date and time). Sorting by those 2 columns, it treats them as a string, so it doesn't display in the correct order. I'm sure this has been discussed before, but my searches have come up empty. If there is a post, please point me in that direction. Most likely it's just I don't know enough to search for the right things. I assume I need to do some sort of custom callback function that converts the dates/times to a timestamp and sort them as numbers, but I'm not totally sure how to go about doing that. Share this post Link to post Share on other sites
KaFu 295 Posted November 30, 2010 (edited) The help-file contains an example. See GUICtrlRegisterListViewSort() example #2. Edited November 30, 2010 by KaFu OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites
CGRemakes 0 Posted November 30, 2010 The help-file contains an example. See GUICtrlRegisterListViewSort() example #2.Yeah, I saw that RIGHT after I posted the question. Guess that's the fastest way to figure out an answer to your own question is to post it in the forum. Thanks for the quick reply. Share this post Link to post Share on other sites
KaFu 295 Posted November 30, 2010 Happend to me a thousand times too ... OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites
CGRemakes 0 Posted November 30, 2010 (edited) EDIT: Nevermind, got it to work. Thanks for the help! Edited November 30, 2010 by CGRemakes Share this post Link to post Share on other sites