我查看了
org.primefaces.component.headerrow.HeaderRowBase
,有一个 sortOrder
值。所以添加 sortOrder="desc"
就可以了。例如在展示中:
<p:headerRow field="representative.name"
expandable="true"
+ sortOrder="desc"
expanded="#{customer.representative.name != 'Stephen Shaw'}">
文档中缺少此属性:
https://primefaces.github.io/primefaces/13_0_0/#/components/headerrow