adding sort method