SELECT users.username, users.created_at FROM users WHERE users.created_at < '2017-05-10'::timestamp ORDER BY users.created_at