Revert "change sort method"

This reverts commit b675f33c1571fdd60dcb5e42df768a0c23397957.