Replies: 1 comment
-
if you want to sort by another column, simply use slickgrid-universal/packages/common/src/interfaces/column.interface.ts Lines 294 to 298 in 26fa5aa |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
Hi,
I am currently using SlickGrid Universal and would like to request an enhancement to the sortComparer function. At present, the sortComparer function only receives the values of the current column (value1, value2) for comparison. However, in some cases, it's more flexible and useful to access the full row's data to implement custom sorting logic that takes other columns into account.
Proposed Solution:
Modify the sortComparer signature or provide an additional parameter that includes the entire row data for value1 and value2.
This would allow sorting not only based on the current column's value but also on other column values or custom logic that requires full row context.
For example:
This would provide more flexibility for custom sorting.
Thank you for considering this request! I'm happy to provide further details if needed.
Beta Was this translation helpful? Give feedback.
All reactions