human
Sort A list of Strings Based on certain field
assistant
Here is some code to sort list `list_of_strings` based on second index of each string `s`

sorted(list_of_strings, key=lambda s: s.split(',')[1])

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