Sorting Lists in a Shortcut

I wrote a number of shortcuts that sort lists of text, numbers, and dates. I’m not sure these are of much use, so I’ll simply post them below. It should be noted that three of these shortcuts use the Filter Files action, and these shortcuts will not work if the following sort behavior changes.

The shortcuts are:

Sort List of Text.shortcut (21.7 KB)

Sort List of Numbers.shortcut (22.1 KB)

Sort List of Dates as Text.shortcut (23.2 KB)

Sort List of Dates with Sorting Dictionary.shortcut (24.1 KB)

Sort List of Text with Shell.shortcut (22.0 KB)

The shortcut that uses the shell took 100 milliseconds to run, although it will sort large lists quickly. All of the other shortcuts took 15 milliseconds or less to run (the actions that create the date lists were not timed). The shortcut that sorts dates by way of a sorting dictionary took 3.4 seconds to sort 171 dates.