Loading...
 
Features / Usability

Features / Usability


Is it possible to sort results in a Relations tracker field

posts: 8633 Israel

Hello,

In a Tiki23 I use a tracker with a Relations tracker field to display payments linked to a customer. However the list displayed seems to be sort alphabetically using the terms returned in the list... and this is chaos. ;-)

{CODE()}
Completed ,April - name
Completed ,December - name
Completed ,January - name
Completed ,July - name
Completed ,June - name
Completed ,March - name
Completed ,May - name
Completed ,November - name
Completed ,September - name
(CODE)

My understanding is that I should be able to use the sort_mode on the Filter parameter (URL-encoded list of filters to be applied on object selection.)

So I used it as I see it working in the tracker view (sort_mode on the date field I have in the tracker):

tracker_id=11&object_type=trackeritem&sort_mode=f_341_asc

In the tracker view, order is ok but not when viewing the results from with the Relations tracker field.

Is there a way to sort the results array in a Relations tracker fields ?

PS: I use also a smarty template in this but couldn't find a way to sort the array using a field (date) that is not part of the output.

There are no comments at this time.