mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 02:57:41 +03:00
sort the objects list
This commit is contained in:
parent
42cae5d9ee
commit
3abab0e700
@ -13,9 +13,14 @@ 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
|
||||||
<li>{label.replace(/^\d+\s+/, "")}</li>
|
.split("\n")
|
||||||
))}
|
.sort((a, b) =>
|
||||||
|
a.replace(/^\d+\s+/, "").localeCompare(b.replace(/^\d+\s+/, ""))
|
||||||
|
)
|
||||||
|
.map((label) => (
|
||||||
|
<li>{label.replace(/^\d+\s+/, "")}</li>
|
||||||
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
## Custom Models
|
## Custom Models
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user