fix sort method
Feature: priority change