0

I have a content type X. A view is used to display this content type (X), as a table. The content type has a field called "Preferred" which contains boolean values. I need to sort the table so that the "Preferred:true" items display at the top of the table.

How can I achieve it?

2

Add a new Sort Criteria sorter that sorts based on that field. Make sure it's at the top of your list of sort criteria.

If you don't want there to be a column for it in the table, click "exclude from display" in the field settings.

6
  • I tried that but, it doesn't work. I created a new Sort Criteria for Preferred. It sorts them together but, they are not at the top of the table. – Mandeep Jul 31 '12 at 21:01
  • and if my logic gene is in gear today, you'll want to sort descending so that all the 1's come first and then the 0's. – Jimajamma Jul 31 '12 at 21:02
  • What exactly did you do when you tried it? What happened when you tried? – beth Jul 31 '12 at 21:04
  • Okay. I added the Sort criteria and now it sorts correctly. But, is there anyway to sort the rest of the columns (that are not preferred true) to be alphabetical? – Mandeep Jul 31 '12 at 21:05
  • Actually, I just added another sort criteria to sort by title and everything works fine. Funny thing is, I tried the same thing earlier and it was not working. Anyways, Thank You! – Mandeep Jul 31 '12 at 21:14

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.