+ Start a Discussion

Display order of Documents in Integration

Hi All 


I have an issue with ordering Documents on to VF Page.  I am getting documents from an external website through integration.I am parsing them using JSON.

The fields parsed through JSON are "TITLE" and "ID"

The order in which it is displayed is (1,2,3,4,5)

It should be displayed as (5,4,3,2,1)

 Once the documents are displayed on the VF Page I can do sort function.

But the requirement is these documents should be displayed as Most recent created document on the top. 


Please help