Template:NameSort

{{DEFAULTSORT: {{#switch:{{#rpos:{{{name|{{PAGENAME}}}}|)}} |-1=      {{#switch:{{#rpos:{{{name|{{PAGENAME}}}}| }}     |-1 = {{{name|{{PAGENAME}}}}     |#default ={{#sub:{{{name|{{PAGENAME}}}}|{{#rpos:{{{name|{{PAGENAME}}}}| }}|7}},{{#explode:{{{name|{{PAGENAME}}}}| |0}} }}   |#default = {{#explode:{{#sub:{{{name|{{PAGENAME}}}}|0|{{#expr:{{#rpos:{{{name|{{PAGENAME}}}}|(}}-1}}}}| |-1}},{{#explode:{{{name|{{PAGENAME}}}}| |0}} {{#explode:{{{name|{{PAGENAME}}}}|(|-1}}

}} }} {{documentation}}{{lock}}