Sort rules lists (take 2)