Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 1009 Bytes

{% raw %}

Generates a link that will update only the &order= argument of the query to the correct value depending on the possible sort order that is already applied. If that particular order is already applied then it will be clearly indicated with the correct icon.

The name of the entity's property.
The title that will appear to the end user.
Optional list of arguments that will be ignored and removed from the generated request. Sometimes it is needed when in the original request the cursor is present and it will be invalid if some of the other arguments will have a different value.

Examples & Demo

Check how it is used in user_list.html and play with orders in User List.

{% endraw %}