Chapter 3. Sorting and Filtering

This chapter introduces sorting and filtering. Using Views' default sorting of the last updated date/time and list of all properties wouldn't be too useful for a large real estate agency that may have hundreds of properties, especially if a visitor was looking for a house that has been for sale for quite a while. Sorting lets you specify the order you want your results to be displayed in, and you can also sort within sorts, which is called a multilevel sort. Once we have the properties in a reasonable order, we'll learn how to group the results when there is more than one row with the same value. Next, we will move on to limiting which results are displayed using filtering. The simplest filters are fixed at the ...

Get Mastering Drupal 8 Views now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.