Skip to content

Commit 178d7f6

Browse files
committed
bugfix to prior commit - used wrong variable to identify sorting column number
1 parent 43f06f1 commit 178d7f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mvc.JQuery.Datatables/DataTablesFiltering.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public IQueryable<T> ApplyFiltersAndSort<T>(DataTablesParam dtParameters, IQuery
5252
for (int i = 0; i < dtParameters.iSortingCols; i++)
5353
{
5454
int columnNumber = dtParameters.iSortCol[i];
55-
DataTablesPropertyInfo column = FindColumn(dtParameters, columns, i);
55+
DataTablesPropertyInfo column = FindColumn(dtParameters, columns, columnNumber);
5656
string columnName = column.PropertyInfo.Name;
5757
string sortDir = dtParameters.sSortDir[i];
5858
if (i != 0)

0 commit comments

Comments
 (0)