Update managementUI.go

This commit is contained in:
akp 2024-12-03 23:12:25 +00:00
parent e73ef26b22
commit 24c89fc380

View file

@ -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
})