retrieving activerecord objects in the order they were specified in the query