is it possible to apply a compare function on a per-column basis?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 351
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 1
Description
Hey!
The situation is that I want to be able to sort a date column. It looks like I can do this using compareFunction but I then need to implement sorting for other types besides dates since it appears all columns will be sorted using this function. Ideally, I'd like to specify my own function for a specific column and then default back to ember-table for everything else.
I could also be doing something terribly wrong, so don't hesitate to call me out 👍
Cheers
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing compareFunction sorting API and the column configuration path in ember-table. Determine how sorting currently applies the comparator and how default type sorting is selected. Done means a comparator can be configured for one column while all other columns retain the existing default behavior, with coverage for both paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100