Thsi replaces 0-9 with a higher ASCII 122 (this is lowercase z).
SQLLite does not have a CHAR function for substituting character code (e.g. CHAR(123) to CHAR(132) ), which may be needed instead of my attempt to CHAR (123)
Of course, untested :-)
ORDER BY REPLACE REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE(name, '0', '{0') , '1', '{2') , '2', '{2') , '3', '{3') , '4', '{4') , '5', '{5') , '6', '{6') , '7', '{7') , '8', '{8') , '9', '{9')
Edit: although the @David Faber solution does the same thing, but a little easier ...
gbn
source share