Can I sort a list of items based on another list of items?
I've looked around the forums but nothing seems to be close to what I am trying to do.
I have a list of items called petList
{"Garfield", "Pluto", "Snoopy"}
I have a list called petOrder
{"Snoopy", "Tweety", "Pluto", "Top Cat", Garfield"}
I want the items in petList to sort according to petOrder and end up like this:
{"Snoopy", "Pluto", "Garfield"}
Is this possible just using Applescript?
Mac Pro, OS X Yosemite (10.10.4), 16 GB RAM, 2x2.4 GHz Quad-Core Xeon