SELECT * FROM users ORDER BY count_img DESC, date ASC