Template:Tts
Template:Time table sorting
This template is intended for use in sortable tables of results in athletic events, to ensure that columns of times achieved by athletes will sort correctly.
This template is not needed if all the times in the relevant table are of exactly the same length and format. For example, results of a one-mile race for elite athletes will usually be of the form m:ss.dd (minutes, seconds, decimals of a second). These will sort correctly, without this template's being necessary, provided the seconds have leading zeroes, and the decimals trailing zeroes where necessary.
However, in a longer race, where the results include times both below and above 10 minutes, then times of 10 to 19 minutes will sort before any lower time of 2 minutes and above. A similar problem occurs in tables holding results above and below 1 minute, or above and below 1 hour, or in tables holding results above and below 10 hours.
This template supplies one way to avoid this problem (see "Possible workaround" below for another).