Skip to content

Commit

Permalink
Adjust sort
Browse files Browse the repository at this point in the history
  • Loading branch information
luis11011 committed Oct 20, 2021
1 parent 1768f4f commit e18711c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions optimus/engines/base/rows.py
Expand Up @@ -189,10 +189,11 @@ def _set_order(o):
dfd = df.functions.sort_df(df.data, sort_cols, order)
meta = Meta.action(self.root.meta, Actions.SORT_ROW.value, cols)

if cast:
dfd = dfd.drop(sort_cols, axis=1)

df = self.root.new(dfd, meta=meta)

if cast:
df = df.cols.drop(sort_cols)

return df

Expand Down

0 comments on commit e18711c

Please sign in to comment.