At the very least I would suggest using `#sort_by` in this class to cut down on duplication.