#23: the sort was backwards