RGH: rule sorting performance