fix(table): sorter invalid

This commit is contained in:
Jacky 2024-11-15 17:36:52 +08:00
parent ff7938b90c
commit 902aa28746
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
32 changed files with 805 additions and 399 deletions

View file

@ -33,6 +33,8 @@ func (c ConfigsSort) Less(i, j int) bool {
flag = boolToInt(c.ConfigList[i].IsDir) > boolToInt(c.ConfigList[j].IsDir)
case "enabled":
flag = boolToInt(c.ConfigList[i].Enabled) > boolToInt(c.ConfigList[j].Enabled)
case "site_category_id":
flag = c.ConfigList[i].SiteCategoryID > c.ConfigList[j].SiteCategoryID
}
if c.Order == "asc" {