def sorted_by_field(issues, field='closed_at', reverse=False):
 return sorted(issues, key=(lambda i: i[field]), reverse=reverse)

def sorted_by_field ( issues , field = 'closed_at' , reverse = False ) : return sorted ( issues , key = ( lambda i : i [ field ] ) , reverse = reverse )
return a list of issues sorted by closing date date .