CGRemakes Posted November 30, 2010 Share 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. Link to comment Share on other sites More sharing options...
KaFu Posted November 30, 2010 Share Posted November 30, 2010 (edited) The help-file contains an example. See GUICtrlRegisterListViewSort() example #2. Edited November 30, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) 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 (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
CGRemakes Posted November 30, 2010 Author Share 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. Link to comment Share on other sites More sharing options...
KaFu Posted November 30, 2010 Share Posted November 30, 2010 Happend to me a thousand times too ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) 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 (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
CGRemakes Posted November 30, 2010 Author Share Posted November 30, 2010 (edited) EDIT: Nevermind, got it to work. Thanks for the help! Edited November 30, 2010 by CGRemakes 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