I need help achieving the following task: I have an object that is structured like this
SOMEKEY: {
"key1": val1,
"key2": val2
}
and an array that holds string values like this
[stringA, stringB, stringC]
What I want, is an array returned by the following criteria.
return all key value pairs from the object, where the values match either one of the string arrays elements.
The result should be sorted by the values in an descending order.