I have a Map of type
static Map<String, ArrayList<String>> Container = new HashMap<String, ArrayList<String>>();
The value array list has two elements, the first index is an extension and the second is size,
Container : {
C:\HTML\viewer\files\output\ViewerJS\commons-io-2.11.0-src (2).zip=[zip, 919362],
C:\HTML\viewer\files\jar_files (2).zip=[zip, 345068],
C:\HTML\viewer\files\output\ViewerJS\rar1.rar=[rar, 1],
C:\HTML\viewer\files\output\files.zip=[zip, 10184010],
C:\HTML\viewer\files\check2.zip=[zip, 1]
}
I want the map to be sorted in descending order based on the number in index 1 of the map value which is the size which is also of type STRING.
A little help would be much appreciated, Thank you.