I am adding custom fields to my Examine index - this works fine. However, I can't seem to sort by my custom fields properly. If they were being defined in the ExamineIndex.config file I would add EnableSorting="true" - how can I do this in my code? Here is my code (below). I want to then sort by last name, followed by first name.
Making a custom field sortable in Examine
Hi all,
I am adding custom fields to my Examine index - this works fine. However, I can't seem to sort by my custom fields properly. If they were being defined in the ExamineIndex.config file I would add EnableSorting="true" - how can I do this in my code? Here is my code (below). I want to then sort by last name, followed by first name.
Cheers!
David
Dave,
Checkout http://thecogworks.co.uk/blog/posts/2013/april/examiness-hints-and-tips-from-the-trenches-part-10-document-writing-redux/ there is some code there which will do exactly what you need.
Regards
Ismail
Awesome! Works a treat, thanks Ismail! #h5yr
is working on a reply...