I have created a custom column named printed which shows the invoice is printed or not and works well.
But how to apply sorting in in it like when i click on printed firstly it shows all data with pagination of printed yes then if i again click on it it sort by No.
So basically i want to know how to sort that data out by asc or desc order according to my printed value?
Any help is appreciated.