add sort method