I have dataframe whose one column is cost column and it's data goes from negative to positive values. Ex:-
1,0,-2,3,-2,5,1,-4,0
I want it to be sorted like 0,0,1,1,3,5,-2,-2,-4
Same valued column can be kept in order of their encounter.
So basic sorting should be done so that we have positive values in ascending and then negative in descending.
I don't want to copy or create new dataframe because I'll sort dataframe and pick a row based on cost and delete it and then again sort by changing cost factor.