以下视觉力页面需要扩展控制器

Need extension controller for the following visual force page

总而言之,我已经完成了 visualforce 代码,以便根据我的要求为 table 中的帐户记录提供分页,但我正在尝试在 table 上提供排序功能。

so I want the extension controller to provide the sorting function with the ascending and descending functionality(because I am new in the extension controller)for my visual page. So keep it in mind my pagination function is also worked together in the sorting function.

我的页面如下,

<apex:page standardController="Account" recordSetVar="accountvar">
    <apex:sectionHeader title="My Accounts" subtitle="Account List View"/>
        <apex:form >
            <apex:pageBlock >
              <apex:pageMessages id="error" />

               <apex:panelGrid columns="7" id="buttons" >
               <!---<apex:pageBlockButtons>---->
                    <apex:commandButton reRender="error,blocktable,buttons" action="{!Save}" value="Save"/>
                    <apex:commandButton reRender="error,blocktable,buttons" action="{!Cancel}" value="Cancel"/>
                    <apex:inputHidden />
                    <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasprevious}" action="{!First}" value="First"/>
                    <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasprevious}" action="{!Previous}" value="Previous"/>
                    <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasnext}" action="{!Next}" value="Next"/>
                    <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasnext}" action="{!Last}" value="Last"/>
               <!---</apex:pageBlockButtons>--->
               </apex:panelGrid>

               <apex:pageBlockSection id="blocktable" >

                    <apex:pageBlockTable value="{!accountvar}" var="t">

                            <apex:column headerValue="AccountName" value="{!t.Name}"/ >                                                
                            <apex:column headerValue="BillingState/Province" value="{!t.BillingState}"/> 
                            <apex:column headerValue="Phone" value="{!t.Phone}"/>
                            <apex:column headerValue="Type" value="{!t.Type}"/>                   
                            <apex:column headerValue="Account Owner Alias" value="{!t.Owner.Name}"/>
                            <apex:column headerValue="Website" value="{!t.Website}"/>

                        <apex:inlineEditSupport event="onClick"/>


                    </apex:pageBlockTable>

               </apex:pageBlockSection>   


            </apex:pageBlock>
        </apex:form>
    </apex:page>

提前致谢。

您的问题属于 Salesforce StackExchange,您将在这里获得更多答案https://salesforce.stackexchange.com/

请删除这个并在 Salesforce SE 上创建它:)