Azuga Interview Question

How to sort hashmap by string as key and value as integer. Hashmap should be sorted by values.