results = filter(sonarData, results) results.sort(key=lambda x:x['createTime']) 此处filter作为一个筛选函数,返回的是迭代器,因此不能直接sort()