sort puzzles by id on front-end