Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Timothy Schenz
Able to Sort a Dynamic Data List?
April 23, 2012 1:36 PM
Answer

Timothy Schenz

Rank: New Member

Posts: 8

Join Date: March 23, 2012

Recent Posts

I can see that I can sort a column of a Dynamic Data List if it's displayed as a spreadsheet. How can a field be sorted if it's not displayed as a spreadsheet?
Achmed Tyrannus Albab
RE: Able to Sort a Dynamic Data List?
March 30, 2015 5:15 AM
Answer

Achmed Tyrannus Albab

Rank: Regular Member

Posts: 119

Join Date: March 5, 2010

Recent Posts

Hi,

Did you manage to get it?
I am trying to sort via Display Template using freemarker. The furthest i got is sort by MODIFIED DATE, which is not exactly what i want. I want it to be sorted by date in the field. I have no idea how to do this.

------------UPDATE---------------------
Also found this : http://stackoverflow.com/questions/11235065/sorting-items-in-a-dynamic-data-list-template-in-liferay

1#set ($records = ${ddlRecordsUtil.getRecords($recordSetId,-1,-1,50,ORDER_BY_text2132_DESC)})


But this is in velocity, having hard time to convert it to FREEMAKER.