From 779eb5708073fb6e076d2c1f024e28e8f9619fb8 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 9 Jan 2022 17:15:23 +0800 Subject: [PATCH] update --- attribute/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attribute/service.go b/attribute/service.go index cfc31ea..a129e6d 100644 --- a/attribute/service.go +++ b/attribute/service.go @@ -27,7 +27,7 @@ func (srv Service) Load() error { key := c.Query("key") if key == "" { var attrs []Attribute - store.DB.Find(&attrs) + store.DB.Order("key").Find(&attrs) server.OK(c, attrs) } else { var attr Attribute