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

Make table.Body sortable #9

Closed
wants to merge 2 commits into from

Conversation

povsister
Copy link
Contributor

This PR implements the sort interface for table.Body

You can call table.Body.SortByField(index) to sort Body.Cells by given field index using lexical order.
or you can call table.Body.SortByFieldWithFunc(index, LessFunc) to sort Cells by given field index using your own LessFunc implementation.

@alexeyco alexeyco closed this Apr 2, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants