Nasdaq interview question

Sort a hash map in ascending order