[java] Sorting hashmap based on keys