From 802c97478822283a7bb9d7d05801c4995a8932c3 Mon Sep 17 00:00:00 2001 From: javed ahmed Date: Wed, 2 Oct 2024 20:10:23 +0530 Subject: [PATCH] #20923 - AbpCrudPageBase is sroting by SortIndex --- framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs b/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs index 1018eb3efa..7544173944 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs +++ b/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs @@ -319,6 +319,7 @@ public abstract class AbpCrudPageBase< { CurrentSorting = e.Columns .Where(c => c.SortDirection != SortDirection.Default) + .OrderBy(c => c.SortIndex) .Select(c => c.SortField + (c.SortDirection == SortDirection.Descending ? " DESC" : "")) .JoinAsString(","); CurrentPage = e.Page;