Tag Archive for 'NumPy'

Sort one list by another list

Here are a couple of ways of sorting one list by another list in Python. The first uses plain ol’ Python, and the others use NumPy.

In each case imagine we want to sort a list of peoples names by their ages. Continue reading ‘Sort one list by another list’