Consider the following array:
var thingsThatMatter = [
{"Colour of hair", "High"},
{"Colour of eyes", "Low"},
{"Colour of shoes", "Medium"}
];
Apologies for the example, but the key part here is the high, medium, low parameter.
That's the data I'm working with (1,2,3 would of been much easier...!)
Is there anyway I can easily sort the array, so that the items run in order - High, Medium, Low?
Or, is there a way I can "get" the item that has the value "Low" as a priority parameter?
Note- the structure of this will be changed to numerical later, however for now, this is what I have to work with.