Sorting Array Without Sort Method Pandas Dataframe To Csv