
Mastering Drupal 8 Views
By :

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 time you create a View, such as whether to include unpublished nodes. You can also expose a filter to the user and let them select which results to show.
Change the font size
Change margin width
Change background colour