diff --git a/routers/router/api/v1/user/user.go b/routers/router/api/v1/user/user.go index 8bcca8d..2a9b616 100644 --- a/routers/router/api/v1/user/user.go +++ b/routers/router/api/v1/user/user.go @@ -6,6 +6,7 @@ import ( "jannex/admin-dashboard-backend/modules/structs" "jannex/admin-dashboard-backend/modules/utils" "jannex/admin-dashboard-backend/socketclients" + "sort" "github.com/gofiber/fiber/v2" ) @@ -44,6 +45,8 @@ func UserInfo(c *fiber.Ctx) error { } } + sort.Strings(categories) + return c.JSON(structs.UserInfoResponse{ UserId: user.Id, Username: user.Username,