<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>sortTool in velocity template of asset publisher</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118718850" />
  <subtitle>sortTool in velocity template of asset publisher</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118718850</id>
  <updated>2026-04-07T02:00:59Z</updated>
  <dc:date>2026-04-07T02:00:59Z</dc:date>
  <entry>
    <title>RE: sortTool in velocity template of asset publisher</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118740568" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118740568</id>
    <updated>2020-03-13T13:59:42Z</updated>
    <published>2020-03-13T13:59:42Z</published>
    <summary type="html">The $entries object only contains the assets which are visible. So if you reduce the number of assets it will only sort those.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if there is actually a bug about sorting by date in Asset Publisher. Liferay 6.2 GA1 is rather old. Maybe you should consider to update to at least the latest 6.2 GA7.</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2020-03-13T13:59:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: sortTool in velocity template of asset publisher</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118727130" />
    <author>
      <name>Lisa Rossi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118727130</id>
    <updated>2020-03-12T08:52:44Z</updated>
    <published>2020-03-12T08:52:44Z</published>
    <summary type="html">Hi Dominik,i had done it already but sorting by date seems not to work in liferay 6.2 ga1. For this i have add logic in my template. &lt;br /&gt;Can you help me?</summary>
    <dc:creator>Lisa Rossi</dc:creator>
    <dc:date>2020-03-12T08:52:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: sortTool in velocity template of asset publisher</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118726805" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118726805</id>
    <updated>2020-03-12T08:41:42Z</updated>
    <published>2020-03-12T08:41:42Z</published>
    <summary type="html">You can just configure the Asset Publisher to sort entries by publishDate. So you won&amp;#39;t need extra code inside your template to sort the entries.</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2020-03-12T08:41:42Z</dc:date>
  </entry>
  <entry>
    <title>sortTool in velocity template of asset publisher</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118718849" />
    <author>
      <name>Lisa Rossi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118718849</id>
    <updated>2020-03-11T22:29:20Z</updated>
    <published>2020-03-11T22:29:20Z</published>
    <summary type="html">Hi all, i wish sort my list of entries by publish date. this is my peace of code&lt;img alt="emoticon" src="@theme_images_path@/emoticons/kiss.gif" &gt;foreach ($curEntry in $sortTool.sort($entries, &amp;#34;publishDate:desc&amp;#34;))&lt;br /&gt;This work, but if i reduce the number of journal article visible in the page (in configuration), i lost the sort.  Can any help me?Thank you</summary>
    <dc:creator>Lisa Rossi</dc:creator>
    <dc:date>2020-03-11T22:29:20Z</dc:date>
  </entry>
</feed>
