do you know how to sort data in an apex:pageBlockTable in a simple way (i am starting visualforce developments).
I use the standard account controller for this page. Thanks!
here is an example, i want to sort the related opportunities for this VF page generated via a button from every SF account:
<apex:pageBlock >
<apex:pageBlockSection title="Opportunities" collapsible="false">
<apex:pageBlockTable value="{!Account.opportunities}" var="opportunity" border="1px solid black" cellpadding="3" rowClasses="alldatarows">
<apex:column value="{!opportunity.StageName}" style="padding: 7px;order-bottom: 1px solid ddd;border: 1px solid black;"/>
<apex:column value="{!opportunity.Amount}" style="padding: 7px;order-bottom: 1px solid ddd;border: 1px solid black;"/>
<apex:column value="{!opportunity.CloseDate}" style="padding: 7px;order-bottom: 1px solid ddd;border: 1px solid black;"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
Lightning Web Components
instead.