mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +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.
|
||||
|
||||
<ul>
|
||||
{labels.split("\n").map((label) => (
|
||||
<li>{label.replace(/^\d+\s+/, "")}</li>
|
||||
))}
|
||||
{labels
|
||||
.split("\n")
|
||||
.sort((a, b) =>
|
||||
a.replace(/^\d+\s+/, "").localeCompare(b.replace(/^\d+\s+/, ""))
|
||||
)
|
||||
.map((label) => (
|
||||
<li>{label.replace(/^\d+\s+/, "")}</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
## Custom Models
|
||||
|
||||
Loading…
Reference in New Issue
Block a user