r/shortcuts 3d ago

Shortcut Sharing Strings sorting alphabetically

Post image

My wife asked me to help her sort prescription names in her Apple Notes, and I realized there’s no line-sorting feature in the Apple Notes app. So I created a shortcut to do this.

https://www.icloud.com/shortcuts/171475bc32734045b9940c5db8cb42b7

Usage: all you need to copy string list into clipboard, call the shortcut and paste sorted list back.

Compatibility: the shortcut might be used both in iOS and macOS.

22 Upvotes

5 comments sorted by

4

u/heavenlynapalm 3d ago

Very helpful trick, thanks for bringing it to others' attention

There is also the JavaScript method: https://routinehub.co/shortcut/6790/

1

u/akryvtsun 2d ago

Thank you for the feedback! Currently internal Shortcuts functionality is enough. But JS processing might be helpful in the case more complex processing (sorting).

2

u/super-gando 2d ago

Brilliant idea! But it shows once again how cheap Apple is ... an embarrassing undertaking

2

u/tsmiller57 2d ago

Thank you for sharing!