Numpy Array Loop Through Pandas Dataframe Sort By Column