1

I've created a search page using Views and 'search api'. I've got my results showing in tabular format with the labels in a above the results returned.

But I can't figure out how to make each label/column header a sort. I want the user to be able to click the label in the column header to then sort that column by ascending/descending.

Anyone know how to make that possible?

2
  • try using Display: Table.
    – No Sssweat
    Apr 4 '16 at 2:08
  • You mean format: table? I'm using that already.
    – Sage
    Apr 4 '16 at 5:07
1

I figured this one out. I have to set the field to 'string' in Search API configuration > index > edit. The default is 'fulltext', which sounds right, but isn't for this usage.

Then you have to change the settings for the format: table to make the field sortable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.