Fullscreen
Loading...
 
Skip to main content

Sort by multiple fields using Sort Control Block

Status
Open
Subject
Sort by multiple fields using Sort Control Block
Version
21.x
Category
  • Feature request
Feature
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
Alessandro Martinelli
Keep informed
Jonny Bradley
Lastmod by
Alessandro Martinelli
Rating
(0)
Description

Hi,
Is there a way of sorting content by means of "sort" control block sorting by more than one value? for example I'd like to execute a first sorting based on column A value; than, for each column A value, I'd like the content to be further sorted by column B value (hope it'clear).

Currently I use something like

Copy to clipboard
{LIST()} {filter field="tracker_id" content="..."} {sort mode="tracker_field_..._asc"} ... {LIST}


I think it could be used something like

Copy to clipboard
{sort mode="tracker_field_sortingField1_asc"} {sort mode="tracker_field_sortingField2_desc}


Or alternatively

Copy to clipboard
{sort mode="???" modes="tracker_field_sortingField1_asc, tracker_field_sortingField2_desc, ..."}

in a similar way w.r.t the already existing syntax

Copy to clipboard
{sort mode="randommode" modes="title_asc,tracker_field_example_asc,tracker_field_ticketNumber_nasc, modification_date_nasc"}


Thank you for your attenction

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7643
Created
Sunday 10 January, 2021 16:00:18 UTC
by Alessandro Martinelli
LastModif
Sunday 10 January, 2021 16:01:54 UTC


Show PHP error messages