+ Start a Discussion

Sorting columns on a VF page


I posted this in the Apex Code Board and didn't get an answer.
Maybe this is a more appropriate board for the question.

I have a simple visual force page listing case numbers with some details.

I have spent days searching for a way to let the user resort the columns on the page.

I found many discussions and lots of code attempting to do the same.

My question is:

Why can't I use the existing tools in SF? When in SF looking at cases in queves I can sort ascending and descending on columns.

I saw developers uploading up and down arrows images. Why do we need to do that if those images already exist in Sales Force?

Is there anyway to use the code and the images  that SF uses to resort columns in a visual page using apex?


if not can someone help me with this issue?




Yes. You can achieve this through Commandlink  and you can use image for  link.


Based on the Ascending or Descending action, you have to rendered the Commandlink.



Thank you Vennila,

But I don't know how to code what you are suggesting.