Skip to content

DataColumn Sort with #425

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

Merged
merged 6 commits into from
Aug 3, 2023
Merged

DataColumn Sort with #425

merged 6 commits into from
Aug 3, 2023

Conversation

Jolanrensen
Copy link
Collaborator

@Jolanrensen Jolanrensen commented Jul 18, 2023

As described in the issue: #297

Also adds some small KDocs utils borrowed from continued-columnsselectiondsl

@Jolanrensen Jolanrensen added enhancement New feature or request KDocs Improvements or additions to KDocs labels Jul 18, 2023
@Jolanrensen Jolanrensen self-assigned this Jul 18, 2023
@Jolanrensen Jolanrensen requested review from koperagen and removed request for koperagen July 21, 2023 10:53
)

col.sortWith { df1, df2 -> df1.nrow - df2.nrow } shouldBe sortedCol
col.sortWith(Comparator { df1, df2 -> df1.nrow - df2.nrow }) shouldBe sortedCol
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to use factory function compareBy for creating Comparator

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, it's just a test, but a bit shorter indeed

@Jolanrensen Jolanrensen merged commit 0680665 into master Aug 3, 2023
@Jolanrensen Jolanrensen deleted the sort-with branch August 3, 2023 10:12
@zaleslaw zaleslaw added this to the 0.12.0 milestone Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request KDocs Improvements or additions to KDocs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants