Fixed sorting problems for the repackaged Rules.