BUG: maintain order in excluding categories