DOS Batch - Sorting text with numbers

Sorting that handles numbers as numbers not text.

Description:

This batch sort`s text by handling the first number found in each line as real number not as text.

E.g.:
  • In a text search 10 is less than 9, because the first letter 1 is less than 9
  • In a number search 10 is greater than 9
Script: sortn.bat
Script Output:
 DOS Script Output
Abc9def
Abc10def