Template:Sort/doc

From RimWorld Wiki
Jump to navigation Jump to search

This template uses Module:Sort to operate. It allows to alphabetically order a list under the following rules:

  • The values can be returned in either ascending or descending order.
  • There are 2 sets available: values delimited by comas plus a white space (", ") and values delimited by new line ("\n").

Coma delimiter[edit]

Ascending order (A-Z)[edit]

{{Sort|asc|muffalo, manaphy, entity}}

Produces:

entity , manaphy, muffalo

Descending order (Z-A)[edit]

{{Sort|des|muffalo, manaphy, entity}}

Produces:

muffalo, manaphy, entity

New line delimiter[edit]

Ascending order (A-Z)[edit]

{{Sort|asc2|*muffalo
*manaphy
*entity}}

Produces:

  • entity
  • manaphy
  • muffalo

Descending order (Z-A)[edit]

{{Sort|des2|*muffalo
*zebra
*entity}}

Produces:

  • zebra
  • muffalo
  • entity