Fyrimynd:Val/sortkey/unit

This template, like other subtemplates of Val, is a switch function whose list of cases are the list of units, and whose result for each unit is a number related to the units multiplier, such as 1000 for km. 1