Are AB3, AB4, AB10, etc. hexadecimal values? If so, use a hex to integer conversion and sort. If they are 'just' strings then you'll have to do something else because those aren't 'numbers' so you can ...