Santa Fe Institute Collaboration Platform

COMPLEX TIME: Adaptation, Aging, & Arrow of Time

Get Involved!
Contact: Caitlin Lorraine McShea, Program Manager,

Difference between revisions of "Template:SortUsersBy"

From Complex Time
(13 intermediate revisions by the same user not shown)
Line 19: Line 19:
</noinclude><includeonly>{{#ask: [[{{#arraymap:{{{1}}}|;|XXX|User:XXX|{{!}}{{!}}}}]] [[Name::+]] [[{{{2}}}::+]] |mainlabel=- |?{{{2}}}= |limit=30 |sort={{{2}}} |order={{{3}}} |limit=100000 |searchlabel= |link=none |format=array |sep=; }}</includeonly>
</noinclude><includeonly>{{#replace:{{#ask: [[{{#arraymap:{{{1}}}|;|XXX|User:XXX|{{!}}{{!}}}}]] [[Name::+]] [[{{{2}}}::+]] |mainlabel= |sort={{{2}}} |order={{{3}}} |limit=100000 |searchlabel= |link=none |format=array |sep=; }}|User:|}}</includeonly>

Latest revision as of 12:36, November 1, 2019

Sorts users list (; as separator), eg:

|Last name
  1. Input string, list of user pages names separated by ;
  2. Property to sort by
  3. Sorting order (asc/desc)

The output format is a sorted string similar to the inputted one, eg: