Added a sort method by callable