orderby parameter example is reversed |
|||
|---|---|---|---|
| Date: | 10/24/2008 | Severity: | Minor |
| Status: | Resolved | Reporter: | Visiluna |
| Version: | EE 1.6.4 | Assigned To: | Not Assigned |
| Keywords: | Documentation, Incorrect Info | ||
Details
In the documentation for the orderby and sort parameters of the exp:weblog:entries tag, the code examples provided are reversed from the example description.
The description states:
“For example, if you wish to order by screen_name alphabetically and then have the most recent entries first, you would use the following parameters:”
The code example is:
orderby=“screen_name|date” sort=“desc|asc”
Using this code would result in a list ordered by screen name in reverse alphabetical order, then with the oldest entries first. Most recent entries would be last.
The correct code example should be:
orderby=“screen_name|date” sort=“asc|desc”
This reversal appears in the documentation for both the orderby parameter as well as the sort parameter.
