@rcohen
Here would be my guess: You have no leading zeros. Think of it sorting alphabetically; Aardvark comes before Apple, even though aardvark has more letters, Aa comes before Ap. So, in your example, 1 comes before 2, 2 comes before 5, etc.
It's like they say when comparing version numbers: Sometimes 20 is bigger than 100.
It's a frustrating issue especially when I deal with Access DBs and sort a record ID field, for instance. I have to write code to add leading zeros in order to sort asc or dec correctly.
@rcohen
Here would be my guess: You have no leading zeros. Think of it sorting alphabetically; Aardvark comes before Apple, even though aardvark has more letters, Aa comes before Ap. So, in your example, 1 comes before 2, 2 comes before 5, etc.
It's like they say when comparing version numbers: Sometimes 20 is bigger than 100.
It's a frustrating issue especially when I deal with Access DBs and sort a record ID field, for instance. I have to write code to add leading zeros in order to sort asc or dec correctly.
rcohen has reacted to this post.