the sort order is also used above implicitly to compute set difference with an array- IMO it's more robust to compute set difference with a set