I am new to postrges and want to sort varchar type columns. want to explain the problem with with below example:
table name: testsorting
order
If the name is always in the 1 alpha followed by n numerics format then:
1 alpha followed by n numerics
select name from testsorting order by upper(left(name, 1)), (substring(name from 2) || '0')::integer