Changes
2nd attempt, now with sortkey escaping, and protection against incorrect usage the sort templates like {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}}
<span data-sort-value="{{#invoke:sortkey|encode|{{{1}}} !}}">{{{2|[[{{{1}}}]]}}}</span><noinclude>
{{documentation}}
</noinclude>
{{documentation}}
</noinclude>