Not really an answer to your question but I had a requirement to sort a List of maps by its values' properties, this will work in your case too:
List<Map<String, Object>> sortedListOfMaps = someListOfMaps.sorted(Comparator.comparing(map -> ((String) map.get("someKey")))).collect(Collectors.toList()))