I have a field called FileName of type varchar containing info like 123.doc, 124.doc, 125.doc and when I do an ORDER BY FileName it manages to order the files correctly. How is this so seeing as the field is a varchar?
Assuming that all the file names are 3 digit numbers then sorting alphabetically will be the same as ordering those numbers numerically. However, if you have something like 1234.doc in there then you will get problems:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.