Well, this is part of my program for restoring proper file order. Those files have wrong names (messed by someone else who used third party software for renaming). I'm asking how to sort stringgrid by two columns because in my program when user is changing the date of file (well just a text) then program sorts whole StringGrid to show the changes, and that is ok. But, there is small problem. Every time sorting order is different... For example, I have something like that:
B:\OLDCRC konwersja\53\636\0\1\8\2_org.jpg 2012.11.16 22:11:08.527420630
B:\OLDCRC konwersja\53\636\0\1\8\3_org.jpg 2012.11.16 22:11:08.527420630
B:\OLDCRC konwersja\53\636\0\1\8\6_org.jpg 2012.11.16 22:11:08.527420630
B:\OLDCRC konwersja\53\636\0\1\8\5_org.jpg 2012.11.16 22:11:08.527420630
B:\OLDCRC konwersja\53\636\0\1\8\4_org.jpg 2012.11.16 22:11:08.527420630
I change the date of file
6_org.jpg from 2012.11.16 22:11:08.527420
630 to 2012.11.16 22:11:08.527420
635 and then StringGrid is being sorted by date Column. As expected file is positioned at last row. But... the roder of other files is also changed. For example 2_org.jpg and 3_org.jpg switch their places. Even when I ... Never mind...
While writing this I realized that I need to change my question...
It should be... How to sort stringGrid without changing order of sorting, or how to sort it, always in ascending order .