function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Robert RobinsonRobert Robinson 

visualforce column header sequencing functionality

General question: Standard Salesforce pages provide the ability to resequence a form's contents when a header is clicked (once for ascending, a second time for descending). when buildin a Visualforce page, what is the code used to provide that resequencing functionality? I would think it would be an addition to the columnHeader value portion of the apex code, but I can not find the specific coding. Something that would fit inside:
<apex:column headerValue="Property Name">
      <apex:outputLink value="/{!mp['Id']}" title="{!mp['Name']}" target="_top">{!mp['Name']}
      </apex:outputLink>
</apex:column>

Any ideas?
Best Answer chosen by Robert Robinson
JeffreyStevensJeffreyStevens
There is quite a bit of info out there on it. Search for "Visualforce column sorting" or "Visualforce table sorting".

Most use JQuery to do it.

Here are a few links....
https://www.sundoginteractive.com/blog/a-recipe-for-column-sorting-salesforce-visualforce-page
http://bobbuzzard.blogspot.com/2014/09/sorting-visualforce-tables-with.html
http://www.systempartners.com/blog/visualforce-sortable-table

All Answers

JeffreyStevensJeffreyStevens
There is quite a bit of info out there on it. Search for "Visualforce column sorting" or "Visualforce table sorting".

Most use JQuery to do it.

Here are a few links....
https://www.sundoginteractive.com/blog/a-recipe-for-column-sorting-salesforce-visualforce-page
http://bobbuzzard.blogspot.com/2014/09/sorting-visualforce-tables-with.html
http://www.systempartners.com/blog/visualforce-sortable-table
This was selected as the best answer
Robert RobinsonRobert Robinson
Thank you