modify sort rule