Why databases use ordered indexes but programming uses hash tables (evanjones.ca)