Force search_by_ids to resort results by original id order