force stable soorting of rules