I’m having trouble to adding sorting control icons as we have with table models,
I saw I can add isSortable to a field, which updates the schema accordingly, but the sorting could only be controlled in the collection preferences :
Am I missing something with configuration ?
sort icon is not shown
being able to control sorting
- Project name: Empathy
- Team name: Empathy
- Environment name: any
- Agent type & version: express
- Recent changes made on your end if any: …
I’m not sure I fully understood your issue.
You have a field on you smart collection that has
isSortable: true but you still can’t sort on that field ? If you click on your field on the Table view doesn’t it sort ?
Could you please share a video showing your issue ?
here is the schema definition :
this how the table header looks like :
only the filter icons exists, but when editing the collection settings you can see in the drop down option the topic field.
You just need to click on your field
@vince thansk for the reply Vince,
But this is not the case, since clicking doesn’t fire any event or request. ( also no mouse cursor is changed to hint a clickable option)
My guess that your testing not on a smart collection, on a model sql collection which get this behavior automatically from what I’ve seen.
On which environment are you working ? Because on your Production and Staging, the field
topic is marked has not
@vince currently doing the local changes locally before pushing the code…
Okey but on which environment please ?
Hey I just pushed the code of the isSortable property - so you can see it in staging
Okey so I do have the
isSortable: true now on the
It’s still not working on your Staging environment ?
nothing changed, I dont see any sorting indication.
do you ?
Okey good catch . I found the issue, I’ll let you know as soon as the fix is released
I just want to let you know that a fix should be live in less than an hour
@RonenMeiri Can you confirm it’s working on your side ?
thanks for the quick fix, looks like its working now ( although I know I need to implement the sorting ).
when the table loads, it looks as follows:
is there a possibility to add a greyed out icon marking this field as sortable? I can see the cursor is changing once hovering the field?
It’s the design, but I will push it on our ProductBoard
I appreciate it, many thanks for you help.
it will help the ux for the table, to see which field is sortable in advance.
A small note, I would also update the d.ts file for the isSortable option since its not there if using typescript.