Cpp Array Sort Python Dataframe Append Dataframe