If your string contains only alphabets('a'-'z' and 'A'-'Z'), numeric digits('0'-'9') and blanks(' '),
here are another examples.
1) If you want to change collating sequence...
Code:
...
ORDER BY
TRANSLATE( fam
, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
, 'aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789'
) ASC
2) If you want position all numeric strings after alphabet strings or mixed strings...
Code:
...
ORDER BY
ISNUMERIC(fam) ASC
, fam ASC
Where ISNUMERIC user-defined-function is in
Sample UDFs for Migration