Template:Sort table/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Sort table. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template extends the functionality of {{sort list}} to tables, so that tables in articles can be set with a default sorting, and have their rows manually shuffled around every time their data is updated.
Usage
{{sort table|table|column}}
or{{sort table|asc|table|column}}
sorts table ascending by column{{sort table|asc|table|column}}
sorts table descending by column