added ordered query to user