This module may be used to generate a sorted "plain list", which is a sorted unordered HTML list without visible bullets.
asc
is ascending as defined by the default LUA string comparison operator.desc
is descending as defined by the default LUA string comparison operator.asc
with is ascending using numeric comparison instead of string comparison.desc
with is descending using numeric comparison instead of string comparison.ascd
is ascending dictionary order, so spaces are sorted before other characters.descd
is descending dictionary order, so spaces are sorted before other characters.To convert a comma separated list to a sorted plainlist, use
<nowiki>{{#invoke:sorted plain list|asc|<comma separated entries>}}</nowiki>
<nowiki>{{#invoke:sorted plain list|desc|<comma separated entries>}}</nowiki>
<nowiki>{{#invoke:sorted plain list|ascd|<comma separated entries>}}</nowiki>
<nowiki>{{#invoke:sorted plain list|descd|<comma separated entries>}}</nowiki>
To convert a semicolon separated list to a sorted plainlist, use
<nowiki>{{#invoke:sorted plain list|asc|<semicolon separated entries>|;}}</nowiki>
<nowiki>{{#invoke:sorted plain list|desc|<semicolon separated entries>|;}}</nowiki>
<nowiki>{{#invoke:sorted plain list|ascd|<semicolon separated entries>|;}}</nowiki>
<nowiki>{{#invoke:sorted plain list|descd|<semicolon separated entries>|;}}</nowiki>
To convert a semicolon separated list of numbers to a sorted plainlist, use
<nowiki>{{#invoke:sorted plain list|asc|<semicolon separated entries>|;|type=number}}</nowiki>
<nowiki>{{#invoke:sorted plain list|desc|<semicolon separated entries>|;|type=number}}</nowiki>
To convert a wikidata property list to a sorted plainlist, use
<nowiki>{{#invoke:sorted plain list|asc|propertyID=<PNUMBER>}}</nowiki>
<nowiki>{{#invoke:sorted plain list|desc|propertyID=<PNUMBER>}}</nowiki>
<nowiki>{{#invoke:sorted plain list|ascd|propertyID=<PNUMBER>}}</nowiki>
<nowiki>{{#invoke:sorted plain list|descd|propertyID=<PNUMBER>}}</nowiki>
<nowiki>{{#invoke:sorted plain list|asc|apples, oranges, bananas}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|desc|apples, oranges, bananas}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|asc|Santa Fe, Santa Rosa, Santana}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|desc|Santa Fe, Santa Rosa, Santana}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|ascd|Santa Fe, Santa Rosa, Santana}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|descd|Santa Fe, Santa Rosa, Santana}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|asc|apples; oranges; bananas|;}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|desc|apples; oranges; bananas|;}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|asc|1,500,666; 200; 3,999; 0; -5|;|type=number}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|desc|1,500,666; 200; 3,999; 0; -5|;|type=number}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|asc|1,500,666; 200; 3,999; 0; -5; apples; oranges; bananas|;}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|desc|1,500,666; 200; 3,999; 0; -5; apples; oranges; bananas|;}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|asc|1,500,666; 200; 3,999; 0; -5; apples; oranges; bananas|;|type=number}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|desc|1,500,666; 200; 3,999; 0; -5; apples; oranges; bananas|;|type=number}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|ascd|District 1, District 8, District 10, District 11}}</nowiki>
→ <nowiki>{{#invoke:sorted plain list|descd|District 1, District 8, District 10, District 11}}</nowiki>
→