batch reading: Orders the IDs after initial query.