Created methid to sort men by salary