I have json array of objects which will have "offer_name" field in every object. I would like to order/sort my json objects by custom defined "offer_name" order. Please let me know how can I achieve this?
I need to order offers in below order
enum OffersOrder { BEST("BEST"),GOLD("GOLD"),RISK("RISK"),STANDARD("STANDARD"),PUBLIC("PUBLIC");
String sound;
OffersOrder(String s) { sound = s; }
}