Oracle interview question

Sort a hashmap in java