Sorting of Custom Columns in SearchResults Page
We have a requirement to sort custom columns in SearchResults Page, when we use filter option in sites console or global AEM Sites search. We have custom columns like Book Title, Book No, Book Author & Book Cost.
Request URL:
http://localhost:4502/mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html
We are getting values for all these custom columns in sorted order based on only one single property as follows:
Path: /apps/settings/cq/search/facets/sites/jcr:content/items/orderby
Property: Value
listOrder: 4
metaType: hidden
name: orderby
sling:resourceType: granite/ui/components/coral/foundation/form/hidden
value: jcr:content/cq:lastModified
We want to sort data on click of each header columns up/down arrow in ascending & descending order.
Please suggest the way to implement this particular requirement.
@arunpatidar @nirmal_jose @nitesh_kumar-1 @pulkit_jain_ @smacdonald2008
@kiran_vedantam @ritesh_mittal @debal_das @lukasz-m @joerghoh