how to keep a list of lists sorted as it is created,dataList.sort(key=lambda x: x[1])