Alessandro Zaccheroni
Alessandro Zaccheroni

Reputation: 21

Drupal Views search by one field and sort by another

I have a problem with Drupal Views.

I have a content type "Company". "Company" has a "City" field (taxonomy term reference) and "Company type" field (A,B,C).

How can I – inside a view – search for City and order by Company Type at the same time?

For example I want to search for Paris. And then I want all Paris Companies sorted initially by Company Type. First A, then B, then C.

How to enable sorting like that?

Upvotes: 1

Views: 308

Answers (1)

norman.lol
norman.lol

Reputation: 5374

It depends a little bit on how you display your companies. As table or as list? But generally you simply can add multiple sort criterions.

enter image description here

Upvotes: 1

Related Questions