Browse Source

Merge branch 'eta_2.2.5_rzd_1012@guomengyuan' into debug

gmy 7 months ago
parent
commit
207c46f093
1 changed files with 6 additions and 0 deletions
  1. 6 0
      services/data/base_from_rzd_classify_service.go

+ 6 - 0
services/data/base_from_rzd_classify_service.go

@@ -73,6 +73,12 @@ func RzdClassifyList() ([]*data_manage.BaseFromRzdClassifyResponse, error) {
 		return rzdClassifyAndIndexInfos[i].Sort < rzdClassifyAndIndexInfos[j].Sort
 	})
 
+	for _, info := range rzdClassifyAndIndexInfos {
+		sort.Slice(info.Child, func(i, j int) bool {
+			return info.Child[i].Sort < info.Child[j].Sort
+		})
+	}
+
 	return rzdClassifyAndIndexInfos, nil
 }