Rule reorder