added sort Method