2016-12-21

Python - How to sort a multiple column list by column index number

import operator
sorted( list_name_here, key=operator.itemgetter(1,0) )

No comments:

Post a Comment