minor improvement in set 4
cloned from astrofrog/problem_set_7
ndarray.sort does not return an array, it changes the array itself