I try to sort records in a listview after performing a search, but nothing seems to work …
This is my sort method:
forms.records.controller.sort('statusSort asc')
That must be enough to sort the foundset, right
Let me share this too;
Dataprovider 'statusSort’is a calculation with this code
if(workstatus == 'Perform')
{
return 1;
}
if(workstatus == 'Wait')
{
return 2;
}
if(workstatus == 'Stop')
{
return 3;
}
if(workstatus == null)
{
return 4;
}
Hope this helps…