revere sorting