Odering of items displayed in a table

How to reverse the sort order of items in a front-end table.

Overview

The issue occurs when using the "Order Fields" function, which defaults to ascending order without an option to specify descending.
To sort in descending order, add "/desc" after the field name in the Order Fields box; use "/asc" for ascending order.

Answered
Connectivity v6
Tw Twincarb 18 Feb, 2017
Hi,

I am trying to set the ordering for one of the tables that I have displaying in the front end, I thought this would be achieved in the appropriate "Order Fields" in the Function as I can't see where it would be added in the table view.

When I add a valid row it sorts the data Ascending, but I can't get it to reverse to using DESC.

Regards,
Dave
Tw Twincarb 18 Feb, 2017
Opps meant to post into the How to Section!
Max_admin Max_admin 18 Feb, 2017
Answer
Hi Dave,

In the order fields box:
Model.field/desc

you can also use "asc"

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Tw Twincarb 18 Feb, 2017
1 Likes
Hi Max,

Thank you 😀 that now gives a better order to my tables

Regards,
Dave
This topic is locked and no more replies can be posted.