take a look at the NLSSORT function.

Regards
Gert