Java Sort Part Of Arraylist To Hashmap Internally Works