@api weekdaySelectionData=[];
The below is coming through data table, but I just want to sort the final list:
weekdaySelectionData=[{"Day__c":"Tue","Morning__c":true,"Afternoon__c":false,"Evening__c":false},{"Day__c":"Mon","Morning__c":true,"Afternoon__c":false,"Evening__c":false},{"Day__c":"Thurs","Morning__c":true,"Afternoon__c":false,"Evening__c":false}]
How to sort this list? I would like to have Mon as on 1st index, then tue then thurs.
PLease help..Thanks a ton in advance.
.sort()method: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…. In case you are querying the records consider adding anOrder Byclause to the SOQL to sort it out at the Apex side itself