Sort order with swimlanes

Hi all,

I have a kanban component which shows review tasks for a user.
These review tasks are reviewable items for other members of staff so I have a swimlane which is ordered by staff name.



My problem is that I would like to sort the kanban in order of the date of review, in the above red is overdue, yellow is today and green is in the future.  It makes sense to have overdue items at the top of the list and this is how they are delivered from the datasource.
I have tried this as per you online help:
  public sortSettingsSortSettingsModel = {
    sortBy: 'DataSourceOrder'
};


But the swimlanes seem to get in the way.
Any solution?

Cheers,
Bob




3 Replies 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team May 5, 2021 01:32 PM UTC

Hi Bob, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. You can modify the existing swimlane data, in the sortComparer function of the swimlaneSettings based on your needs by re-ordering the data with lowest dates. We have also prepared a sample, that tries to meet your requirements by arranging the cards based on the date specified. 
 
 
 
Please let us know if the solution helps, 
 
Regards, 
Indrajith 


Marked as answer

BI bob ingham May 6, 2021 02:10 PM UTC

Hi Indrajith,

Perfect, with a couple of modifications I was able to implement the sort comparer.
Thanks for your help.

Cheers,
Bob




RK Revanth Krishnan Syncfusion Team May 7, 2021 12:50 PM UTC

Hi Bob, 
 
Thanks for the update. 
 
We are glad that the provided solution satisfied your requirement. Please let us know if you need any further assistance. 
 
Regards, 
Revanth 


Loader.
Up arrow icon