Order by id so SQL results will use elastic search ordering, fixes #2647