+ 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...
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 : )