![]() | This Lua module is used on approximately 26,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
![]() | This module depends on the following other modules: |
Module:Sort title is used to create sortkeys for pages.
The module preforms the following checks:
The Avengers
will have a sortkey of Avengers, The
.Pilot (The Flash)
will have a sortkey of Pilot (Flash, The)
.The End (A Series of Unfortunate Events)
will have a sortkey of End, The (Series of Unfortunate Events, A)
.4,722 Hours
will have a sortkey of 4722 Hours
.From template:
{{#invoke:Sort title|getSortKey}}
{{#invoke:Sort title|getDefaultSort}}
From module:
local sortkeyModule = require('Module:Sort title')
local sortkey = sortkeyModule._getSortKey()
Function | Explanation |
---|---|
getSortKey
|
Returns a sortkey |
getDefaultSort
|
Returns a DEFAULTSORT string |