Template:Sort dash/doc

Sometimes emdashes (&mdash;) do not work the way we would like them to in sortable tables. This template is designed to overcome that.

Consider the following example, which uses normal emdashes:

The name column sorts correctly, but the number column behaves in a peculiar way. This can be a particularly problematic issue in large, complex, sortable tables. Repeating the same table, but replacing the emdashes with, produces the following: