A noob's design of sorter