Cpp Array Sort Python Dataframe Add A Column