human
Sorting numpy array on multiple columns in Python
assistant
Here is some code to sort a structured numpy array 'df' on multiple columns 'year', 'month' and 'day'.

df.sort(['year', 'month', 'day'])

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