Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ private Task<QueryData<Foo>> OnQueryAsync(QueryPageOptions options)
isSorted = true;
}

// 此段代码可不写,组件内部自行处理
if (options.SortName == nameof(Foo.DateTime))
{
items = items.Sort(options.SortList);
isSorted = true;
}
else if (!string.IsNullOrEmpty(options.SortName))
if (!string.IsNullOrEmpty(options.SortName))
{
// 外部未进行排序,内部自动进行排序处理
items = items.Sort(options.SortName, options.SortOrder);
Expand Down
Loading