I have a Map<String, Id>
and i want to sort them based on ENUM with sort order..
Map values: Apple, 1
Banana, 2
Grapes, 3
Coconut, 4
Mango, 5
Avocado, 6
my ENUM compose of
FruitName(sortOrder, id)
What is the best way to do the sorting?