File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -426,6 +426,9 @@ func init() {
426
426
for _ , ttype := range schema .TypeMap () {
427
427
results = append (results , ttype )
428
428
}
429
+ sort .Slice (results , func (i , j int ) bool {
430
+ return results [i ].Name () < results [j ].Name ()
431
+ })
429
432
return results , nil
430
433
}
431
434
return []Type {}, nil
@@ -558,6 +561,9 @@ func init() {
558
561
}
559
562
fields = append (fields , field )
560
563
}
564
+ sort .Slice (fields , func (i , j int ) bool {
565
+ return fields [i ].Name < fields [j ].Name
566
+ })
561
567
return fields , nil
562
568
}
563
569
return nil , nil
@@ -618,6 +624,9 @@ func init() {
618
624
for _ , field := range ttype .Fields () {
619
625
fields = append (fields , field )
620
626
}
627
+ sort .Slice (fields , func (i , j int ) bool {
628
+ return fields [i ].PrivateName < fields [j ].PrivateName
629
+ })
621
630
return fields , nil
622
631
}
623
632
return nil , nil
You can’t perform that action at this time.
0 commit comments