File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -681,14 +681,15 @@ private function doOrdering()
681
681
if (! empty ($ column ['name ' ])) {
682
682
$ this ->query ->orderBy ($ column ['name ' ], $ order_dir );
683
683
} elseif (isset ($ this ->columns [$ order_col ])) {
684
- $ this ->query ->orderBy ($ this ->columns [$ order_col ], $ order_dir );
684
+ $ column_name = $ this ->getColumnName ($ this ->columns [$ order_col ]);
685
+ $ this ->query ->orderBy ($ column_name , $ order_dir );
685
686
}
686
687
}
687
688
} else {
688
689
if (isset ($ this ->columns [$ order_col ])) {
689
690
if ($ this ->input ['columns ' ][$ order_col ]['orderable ' ] == "true " ) {
690
- $ column = $ this ->getColumnName ($ this ->columns [$ order_col ]);
691
- $ this ->query ->orderBy ($ column , $ order_dir );
691
+ $ column_name = $ this ->getColumnName ($ this ->columns [$ order_col ]);
692
+ $ this ->query ->orderBy ($ column_name , $ order_dir );
692
693
}
693
694
}
694
695
}
You can’t perform that action at this time.
0 commit comments