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

Feature Request: Support custom sorting functions #1166

Open
JLampeMW opened this issue Feb 11, 2025 · 0 comments
Open

Feature Request: Support custom sorting functions #1166

JLampeMW opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@JLampeMW
Copy link
Member

Description

Currently, the table component uses a fixed alphanumeric sorting function (sortingFn: "alphanumeric"). This limits the flexibility when working with special data types like BigInt or custom sorting requirements.

Current Limitations

  • No way to specify custom sorting functions through the SortingShape interface
  • Fixed alphanumeric sorting which doesn't work well for special data types
  • Can't implement domain-specific sorting logic

Proposed Solution

Add support for custom sorting functions by:

  1. Adding an optional sortingFn property to SortingShape interface
  2. Allowing pass-through of custom sorting functions to the underlying table component
@JLampeMW JLampeMW added bug Something isn't working enhancement New feature or request labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant