• New in : SPIP 4.0

Criterion {par_ordre_liste field, #LISTE{...}} allows you to explicitly order the results of a loop so that the value of field follows the order of the array passed in the 2nd parameter.

In the simplest loops, the result is the same as using a {field IN ...}; but with the IN criterion, the order specified by the list is ignored if there is another sorting criterion or a join.

In addition
-  The {by_order_list ...} criterion is used to separate the selection from the ranking;
-  It can be combined with other criteria {by...} in any order.

Author jack Published :

Translations : English, français