I received a big array of object from the backend and I used filtering to leave only these values
const markets = ['IT', 'DE', 'UK', 'FR', 'NL', 'US'] // so now this is what have
I am going then to map through markets, but it will always start by IT and follows that order. Is there a way to sort this following a specific order?
['US', 'DE', 'UK', 'FR', 'IT', 'NL']
I want to sort every array that i receive following this specific order even if I don't receive all the values.