I have an array of custom objects. Objects contain status : paid or unpaid.
I want to sort array like :
On first click, sort array to display paid records first and then unpaid records.
On second click, sort array to show unpaid records and then paid records.
Any help ?
you can try below like statement: