SPIP
Article submitted
The article « {par_ordre_liste…}
(https://www.spip.net/ecrire/?exec=article&id_article=6756) » is submitted
for publication. on Friday 23 September 2022.
{par_ordre_liste…}
Friday 23 September 2022 , by jack
Criterion `
{par_ordre_liste champ,
#LISTE
{…}}
allows you to explicitly order the results of a loop so that the value of
champ` 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 sort 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.
— Sent by SPIP (https://www.spip.net/)