i need one help.i am sorting array using the key value,i need if one key value will same then it should come in alphabetically order again.Let me to explain my code below.
{"data":[
{"subcat_id":"9","subcat_name":"SUSHI","order":"9"},
{"subcat_id":"20","subcat_name":"APPETIZERS","order":"6"},
{"subcat_id":"6","subcat_name":"CHINESE","order":"4"},
{"subcat_id":"26","subcat_name":"BRUNCH","order":"4"},
{"subcat_id":"17","subcat_name":"ENTREES","order":"3"},
{"subcat_id":"25","subcat_name":"HAPPY HOUR","order":"2"}
]}
here if order value will same (lets say-order->4
),then it should come the alphabetically as per subcat_name
(BRUNCH,CHINESE
) like this.