The items are stored in a map in random order (Red -> 45, Blue -> 23 etc). The picture makes it easier to read by showing many red boxes but the actual implementation just stores a number for each item label.
81 karma · joined September 7, 2013
I also like personal finance and write about it on a blog.
Personal finance: https://www.foxymonkey.com/ Tech stuff: https://micvog.com/