Reordering of rows only happens if pandas.DataFrame.loc is available