Update managementUI.go
This commit is contained in:
parent
e73ef26b22
commit
24c89fc380
1 changed files with 2 additions and 2 deletions
|
@ -49,9 +49,9 @@ func (mr *managementRoutes) index(rw http.ResponseWriter, rq *http.Request) erro
|
|||
|
||||
slices.SortFunc(s, func(a, b *database.SiteModel) int {
|
||||
if a.LastUpdatedAt < b.LastUpdatedAt {
|
||||
return -1
|
||||
} else if a.LastUpdatedAt > b.LastUpdatedAt {
|
||||
return 1
|
||||
} else if a.LastUpdatedAt > b.LastUpdatedAt {
|
||||
return -1
|
||||
}
|
||||
return 0
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue