Skip to content

Commit c695c3a

Browse files
committed
1 parent 50bd9b8 commit c695c3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/primefaces/component/datatable/DataTableRenderer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,10 @@ else if (sortOrder.equals(SortOrder.DESCENDING)) {
695695
}
696696

697697
protected String resolveDefaultSortIcon(DataTable table, UIColumn column, String sortOrder) {
698+
ValueExpression tableSortByVE = table.getValueExpression(DataTable.PropertyKeys.sortBy.toString());
698699
String field = table.resolveColumnField(column);
699700
String sortField = table.getSortField();
701+
sortField = (sortField == null && tableSortByVE != null) ? table.resolveStaticField(tableSortByVE) : sortField;
700702
String sortIcon = null;
701703

702704
if (sortField != null && field != null && sortField.equals(field)) {

0 commit comments

Comments
 (0)