Views Sort Criteria
Last modified: March 17, 2006 - 03:13
The sort criteria on a View controls the order in which views results are presented. In general, sort criteria are specified by a direction, and the order is important.
For example, if a view is sorted by taxonomy term ascending, and then title descending, then the entire list of posts will be sorted by what taxonomy term they belong to. (Note: vocabularies where multiple terms are allowed for this setting will produce apparently nonsensical results!) Then, all posts which belong to the same term will be sub-sorted by title in reverse alphabetical order.
- Field
What follows is a list of sorting criteria supported by Views by default. More may be available, supplied by modules with Views support.
- Node: Created Time
- Sort by the submission date of the node.
- Node: Last Updated Time
- Sort by the last update date of the node.
- Node: Sticky
- Sort by whether or not the node is sticky. Choose descending to put sticky nodes at the top.
- Node: Title
- Sort by the node title, alphabetically
- Random
- By choosing random, nodes will be ordered completely randomly. This is a good way to choose X random nodes from a group of nodes.
- Node: Author Name
- This allows you to sort alphabetically by author.
- Comment: Last Comment Date
- This will allow you to sort by the date of the most recent comment on a node.
- Taxonomy: Term Name
- This will sort nodes by taxonomy weight and name, as defined in the category administration.
