All,
I'm trying to sort year in descending order which is implemented with binding properties of the data source containing cascading listbox filtering. I tried couple of things to sort year on the listbox without any success. Currently its showing 2010,2011....2020 and i want 2020,2019 ......
I tried simple sort() function and this script as well
var membersAsc = DS_1.getMembers("0CALMONTH", 1000);
Listbox membersAsc.forEach(function(element, index) {
LISTBOX_1.addItem(element.internalKey, element.text, 0); });
Please provide some feedback on how can I fix it. Thank you.