not specifying order while fetching activerecord objects when ids are not present