Sorting works. This is a lexicographic view (in alphabetical order). It looks like there is text in this column (char, varchar, ...), so the ordering you get is textual, not numeric.
If you want to sort numerically, use a numeric column type (e.g. int). (Or enter the column accordingly.)
source share