Files
dickloads/data/units.json
Falkan 8ec935d238 fix: alpha sort by labelPlural primary, symbol secondary
Handles ties like 'Barrel (US fluid)' vs 'Barrel (US dry)'
2026-03-18 21:13:17 -04:00

153 lines
3.5 KiB
JSON

{
"units": [
{
"id": "dickload",
"label": "dickload",
"labelPlural": "dickloads",
"symbol": "dl",
"group": "dickloads",
"toBase": 1,
"description": "See {pound:description}. Let's also look at {us-oil-bbl}."
},
{
"id": "pound",
"label": "pound",
"labelPlural": "pounds",
"symbol": "lb",
"group": "dickloads",
"toBase": 0.038,
"description": "My description is {dickload:description}"
},
{
"id": "us-oil-bbl",
"label": "oil barrel (US)",
"labelPlural": "oil barrels (US)",
"symbol": "us oil bbl",
"group": "dickloads",
"toBase": 13.3192584,
"description": "Weight is based on pure water at 4 degrees celsius.",
"hidden": false
},
{
"id": "hogshead",
"label": "hogshead",
"labelPlural": "hogsheads",
"symbol": "hhd",
"group": "dickloads",
"toBase": 38
},
{
"id": "short-ton",
"label": "short ton",
"labelPlural": "short tons",
"symbol": "t",
"group": "dickloads",
"toBase": 76
},
{
"id": "fuckton",
"label": "fuck ton",
"labelPlural": "fuck tons",
"symbol": "fcktn",
"group": "dickloads",
"toBase": 152
},
{
"id": "long-ton",
"label": "long ton",
"labelPlural": "long tons",
"symbol": "long tn",
"group": "dickloads",
"toBase": 85.1199999999,
"hidden": false
},
{
"id": "metric-fuckton",
"label": "metric fuckton",
"labelPlural": "metric fucktons",
"symbol": "mfcktn",
"group": "dickloads",
"toBase": 170.2399999998,
"description": "Trivia: although the name is \"metric fuckton,\" it is actually equal to two {long-ton:plural}!",
"hidden": false
},
{
"id": "assload",
"label": "assload",
"labelPlural": "assloads",
"symbol": "assl",
"group": "dickloads",
"toBase": 2
},
{
"id": "shitload",
"label": "shitload",
"labelPlural": "shitloads",
"symbol": "shtld",
"group": "dickloads",
"toBase": 12.6666666667
},
{
"id": "shit-ton",
"label": "shit ton",
"labelPlural": "shit tons",
"symbol": "shttn",
"group": "dickloads",
"toBase": 38
},
{
"id": "asdf",
"label": "asdf",
"labelPlural": "asdf",
"symbol": "asdf",
"group": "another-group",
"toBase": 1,
"hidden": true
},
{
"id": "us-fluid-bbl",
"label": "barrel",
"labelPlural": "barrels",
"symbol": "us fluid bbl",
"group": "dickloads",
"toBase": 9.9894438
},
{
"id": "us-dry-bbl",
"label": "dry barrel",
"labelPlural": "dry barrels",
"symbol": "us dry bbl",
"group": "dickloads",
"toBase": 1
},
{
"id": "us-hogshead",
"label": "hogshead (US)",
"labelPlural": "hogsheads (US)",
"symbol": "us hhd",
"group": "dickloads",
"toBase": 19.9788876,
"description": "Equal to two US fluid barrels."
}
],
"groups": [
{
"id": "dickloads",
"label": "Weights and Masses",
"baseUnitId": "dickload",
"toUniversal": 1,
"sortOrder": "alpha",
"hidden": false,
"alwaysShowLabel": true
},
{
"id": "another-group",
"label": "Another Group",
"baseUnitId": "",
"toUniversal": 1,
"alwaysShowLabel": false,
"hidden": true
}
]
}