Though users are outputted in the correct order by MySQL, make sure with usort()