a simple work around is to add zeros in front of the numbers. If you expect to have more than 999 cards you should write four digits for each number (0001, 0002, ..., 1004, ...)
The sorting algorithm seems to look at numbers as if it would be normal text.
It sorts like this:
1
10
100
2
20
200
3
30
300
The order with leading zeros would be:
001
002
003
010
020
030
100
200
300
a simple work around is to add zeros in front of the numbers. If you expect to have more than 999 cards you should write four digits for each number (0001, 0002, ..., 1004, ...)
The sorting algorithm seems to look at numbers as if it would be normal text.
It sorts like this:
1
10
100
2
20
200
3
30
300
The order with leading zeros would be:
001
002
003
010
020
030
100
200
300
by the way: isn't it posible to change the sorting behaviour without implementing a custom sort but using just setSortRole() as mentioned here: http://stackoverflow.com/questions/6568161/qt-sorting-is-wrong-when-using-qsortfilterproxymodel-on-number-strings-and-gett ??
Forgive me if not, I don't know Qt for now... and thanks for this great program, I'm using it since years :-)