Compound sorting in java

I Have a List<Map<String,String>>  type a large amount of data like

[{"14003":"Andhra Pradesh","15070":"47","14778":"473360.0","14786":"7750.056737588651","213955":"13.22121641034308","14782":"62583.950000000004"},{"14003":"Assam","15070":"13","14778":"57927.0","14786":"3844.153846153846","213955":"13.72852037909783","14782":"7952.52"},{"14003":"Bihar","15070":"11","14778":"102111.0","14786":"7620.727272727273","213955":"17.905113063235106","14782":"18283.09"},{"14003":"Chhattisgarh","15070":"3","14778":"63400.0","14786":"13101.333333333334","213955":"7.296529968454259","14782":"4626.0"},{"14003":"Delhi","15070":"20","14778":"678190.0","14786":"29261.083333333336","213955":"8.788674265323875","14782":"59603.90999999999"},{"14003":"Gujarat","15070":"38","14778":"337674.0","14786":"7597.026315789473","213955":"14.080160154468512","14782":"47545.04000000001"},{"14003":"Haryana","15070":"47","14778":"482114.0","14786":"8316.808510638299","213955":"18.147454751365864","14782":"87491.42000000001"},{"14003":"Jammu and Kashmir","15070":"1","14778":"4398.0","14786":"3474.0","213955":"21.000000000000004","14782":"923.58"},{"14003":"Jharkhand","15070":"7","14778":"123899.0","14786":"14296.857142857143","213955":"19.2259582401795","14782":"23820.77"},{"14003":"Karnataka","15070":"34","14778":"203185.0","14786":"4830.029411764706","213955":"18.153845018086965","14782":"36885.89"},{"14003":"Kerala","15070":"6","14778":"113499.0","14786":"17210.833333333332","213955":"9.016643318443334","14782":"10233.8"},{"14003":"Madhya Pradesh","15070":"31","14778":"173181.0","14786":"3897.8387096774195","213955":"15.473008008961722","14782":"26796.31"},{"14003":"Maharashtra","15070":"56","14778":"465227.0","14786":"5860.044642857142","213955":"19.17586468541164","14782":"89211.3"},{"14003":"Orissa","15070":"14","14778":"87083.0","14786":"4185.321428571428","213955":"18.134813913163303","14782":"15792.34"},{"14003":"Punjab","15070":"35","14778":"307516.0","14786":"7386.071428571428","213955":"15.449111590941609","14782":"47508.49"},{"14003":"Rajasthan","15070":"26","14778":"144508.0","14786":"4544.5","213955":"18.234111606277853","14782":"26349.75"},{"14003":"Tamil Nadu","15070":"23","14778":"270455.0","14786":"10043.782608695652","213955":"10.373537187332458","14782":"28055.749999999996"},{"14003":"Uttar Pradesh","15070":"47","14778":"328747.0","14786":"5435.159574468085","213955":"11.180579594642687","14782":"36755.81999999999"},{"14003":"Uttarakhand","15070":"3","14778":"15849.0","14786":"4580.0","213955":"13.30796895703199","14782":"2109.1800000000003"},{"14003":"West Bengal","15070":"35","14778":"936006.0","14786":"23604.552380952384","213955":"11.204958087875507","14782":"104879.08000000002"}]

 

Now i want the natural and compound sorting on this data as grouping the data on "14003" value in java.

Author: prabal pratap singh
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer