Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include row number in transform to be stable by default #17

Open
stuartlangridge opened this issue Mar 29, 2017 · 0 comments
Open

Include row number in transform to be stable by default #17

stuartlangridge opened this issue Mar 29, 2017 · 0 comments

Comments

@stuartlangridge
Copy link
Owner

Excellent suggestion from Alain Knaff:

Rather than sorting the rows directly on the target column's key ("colval"), sort it instead on the pair [colval, initial_pos], where initial_pos is the position the column had after the previous sort (i.e. if colval compare equal, compare initial_pos to break ties).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant