human
How to alphabetically sort array of dictionaries on single key?
assistant
Here is some code to sort list `my_list` in alphabetical order based on the values associated with key 'name' of each dictionary in the list

my_list.sort(key=operator.itemgetter('name'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.