Sort and Number Lines

Sort, number, trim and de-duplicate a list of lines.

Sorting is natural and ignores case, so item10 comes after item9 rather than before it.