develop sort_by_name method for List object