We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84dd4c commit 6943615Copy full SHA for 6943615
src/BootstrapBlazor.Server/Components/Samples/Table/TablesFilter.razor.cs
@@ -64,13 +64,7 @@ private Task<QueryData<Foo>> OnQueryAsync(QueryPageOptions options)
64
isSorted = true;
65
}
66
67
- // 此段代码可不写,组件内部自行处理
68
- if (options.SortName == nameof(Foo.DateTime))
69
- {
70
- items = items.Sort(options.SortList);
71
- isSorted = true;
72
- }
73
- else if (!string.IsNullOrEmpty(options.SortName))
+ if (!string.IsNullOrEmpty(options.SortName))
74
{
75
// 外部未进行排序,内部自动进行排序处理
76
items = items.Sort(options.SortName, options.SortOrder);
0 commit comments