ထႅမ်းပလဵတ်ႉ:Sortfrac
Appearance
<span class="template-frac">1⁄{{{1}}}</span>
This template is a combination of {{frac}} and {{sort}}. It allows numerical sorting of a column containing fractions.
တူဝ်ယၢင်ႇ
[မႄးထတ်း]For examples of tables using the template see DHL Delivery Man Award.
ၶူတ်ႉ
[မႄးထတ်း]<span class="template-frac">
{{#if:{{{3|}}}
|{{sort
|{{#expr: {{{1}}}+{{{2}}}/{{{3}}} }}
|{{{1}}}<sup>{{{2}}}</sup>⁄<sub>{{{3}}}</sub>}}
|{{#if:{{{2|}}}
|{{sort
|{{#expr: {{{1}}}/{{{2}}} }}
|<sup>{{{1}}}</sup>⁄<sub>{{{2}}}</sub>}}
|{{sort
|{{#expr: 1/{{{1}}} }}
|<sup>1</sup>⁄<sub>{{{1}}}</sub>}}
}}
}}
</span>
တူၺ်းပႃး
[မႄးထတ်း]- Template:Sortname - sort names using "last name, first name" as default sort key
- Template:Autotable5 - generate a sortable table with auto-numbered rows, up to 5 columns