I have an issue when I sort desc/asc on a column in a database it sorts it like this.
9980
91
883
51
507
460
286
243
23
2131
Now I figured this is because I made the colum varchar. Is anyway to get it to sort correctly without changing to the column to int?
Thanks
If you want the items to be sorted as if they were numbers, cast them to an integer: