sort puzzles by id