diff --git a/Bootstrap.DataAccess/Dict.cs b/Bootstrap.DataAccess/Dict.cs index 322ca899..e3c1a06f 100644 --- a/Bootstrap.DataAccess/Dict.cs +++ b/Bootstrap.DataAccess/Dict.cs @@ -56,7 +56,7 @@ namespace Bootstrap.DataAccess /// 获取字典分类名称 /// /// - public virtual IEnumerable RetrieveCategories() => DictHelper.RetrieveDicts().Select(d => d.Category).Distinct(); + public virtual IEnumerable RetrieveCategories() => DictHelper.RetrieveDicts().OrderBy(d => d.Category).Select(d => d.Category).Distinct(); /// ///