load( local!pagingInfo:a!pagingInfo(1,100, a!sortInfo("name",1)), local!folderContent:{ {name:"Paul", lastModified: "12 June 2016"}, {name:"Gene", lastModified: "13 April 2015"} }, with( /* Need to tie your data with a paging info using todatasubset */ local!folderdocs: todatasubset(local!folderContent, local!pagingInfo), a!sectionLayout( label: "Attachments", firstColumnContents: { a!gridField( label:"", totalCount: local!folderdocs.totalCount, columns: { a!gridTextColumn( label: "Name", /*need to insert field for each grid text column you want sortable so Appian knows what field to sort on*/ field: "name", data: index(local!folderdocs.data, "name", {}), alignment: "LEFT" ), a!gridTextColumn( label: "Modified Date", /*need to insert field for each grid text column you want sortable so Appian knows what field to sort on*/ field: "lastModified", data: index(local!folderdocs.data, "lastModified", {}), alignment: "LEFT" ) }, /*When you click a grid header to sort, the pagingInfo sortInfo will be updated here*/ value:local!pagingInfo, saveInto:local!pagingInfo ) } ) ) )