sort the objects list

This commit is contained in:
Leonardo Merza 2025-06-18 21:21:08 -04:00
parent 42cae5d9ee
commit 3abab0e700

View File

@ -13,7 +13,12 @@ Please note:
- `person` is the only tracked object by default. See the [full configuration reference](reference.md) for an example of expanding the list of tracked objects. - `person` is the only tracked object by default. See the [full configuration reference](reference.md) for an example of expanding the list of tracked objects.
<ul> <ul>
{labels.split("\n").map((label) => ( {labels
.split("\n")
.sort((a, b) =>
a.replace(/^\d+\s+/, "").localeCompare(b.replace(/^\d+\s+/, ""))
)
.map((label) => (
<li>{label.replace(/^\d+\s+/, "")}</li> <li>{label.replace(/^\d+\s+/, "")}</li>
))} ))}
</ul> </ul>