2 ms·
A hash map is unsorted so it's not a useful way to sort data
by cozzyd 6y ago
A hash map is unsorted so it's not a useful way to sort data
- Ericson2314 6y agoVery true. I like rich keys with non-trivial comparison cost. I even better like nested maps which no only are often useful in their own right, but also server to cache the cost of comparison wrt the original map---a domain-specific trie. Map are just far more the bread and butter of programming than sorting, and not just if you are using the one of the languages satirized by https://elbenshira.com/blog/the-universal-data-structure/ https://elbenshira.com/blog/the-universal-data-structure/