In one of my database fields, I have numbers which include ordinal suffixes. I’m trying to sort them ascending, but since the numbers include ordinal suffixes, the string ‘101st’ is assigned a greater value than ‘1st’, and similarly, ’29th’ a greater value than ‘2d’.
Does anyone know how I might work around this, without removing the ordinal suffixes of each digit?
1 Answer