reorderBoards

Put all boards in the right order and sorts the records of the boards table. Used by modifyBoard(), deleteBoards(), modifyCategory(), and deleteCategories() functions