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 50bd9b8 commit c695c3aCopy full SHA for c695c3a
src/main/java/org/primefaces/component/datatable/DataTableRenderer.java
@@ -695,8 +695,10 @@ else if (sortOrder.equals(SortOrder.DESCENDING)) {
695
}
696
697
protected String resolveDefaultSortIcon(DataTable table, UIColumn column, String sortOrder) {
698
+ ValueExpression tableSortByVE = table.getValueExpression(DataTable.PropertyKeys.sortBy.toString());
699
String field = table.resolveColumnField(column);
700
String sortField = table.getSortField();
701
+ sortField = (sortField == null && tableSortByVE != null) ? table.resolveStaticField(tableSortByVE) : sortField;
702
String sortIcon = null;
703
704
if (sortField != null && field != null && sortField.equals(field)) {
0 commit comments