human
How to keep a list of lists sorted as it is created
assistant
Here is some code to keep a list `dataList` of lists sorted as it is created by second element

dataList.sort(key=lambda x: x[1])

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