+ 3

How to sort Hash Map by key?

e.g. you have have a program that stores details of people with variables : age, first Name, lastName..etc and you have to out put each persons details and they should be sorted by their age...

18th Apr 2018, 4:38 AM
Mompati Keetile
Mompati Keetile - avatar
2 Answers
+ 4
This code by @Szaky uses list but it is doing sorting works, I hope this can give you an idea. https://code.sololearn.com/c2h5degNZA1m/?ref=app Good luck : )
18th Apr 2018, 5:02 AM
Ipang