I've been having difficulty finding any question similar to my issue, so I made an account just to ask.
So let's say I have a list of 10 random questions:
set questionList to {
"10. If you could have any superpower, what would it be and why?",
"1. What’s the most adventurous thing you’ve ever done?",
"3. If you could travel back in time, which historical event would you want to witness?",
"4. What’s your favorite book or movie, and why does it resonate with you?",
"7. If you were stranded on a deserted island, what three items would you want to have with you?",
"2. What’s a skill or hobby you’ve always wanted to learn but haven’t yet?",
"8. If you could meet any famous person (dead or alive), who would it be and what would you ask them?",
"5. What’s the best piece of advice you’ve ever received?",
"9. If you could instantly master any musical instrument, which one would you choose?",
"6. What’s a place you’ve never been to but would love to visit someday?"
}
How would I sort this into a new list numerically?
It's quite cumbersome to sort arbitrary items in AppleScript.
But it's pretty easy in AppleScriptObjC
localizedStandardCompareconsiders also numeric values.