Sort and Number Lines

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

An example

Not your input

Lines in
bursa / ankara / izmir
Lines out
ankara / bursa / izmir (sorted)

Sorting, reversing, numbering and trimming are separate options below.

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