<?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>Order Message Board</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118155322" />
  <subtitle>Order Message Board</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118155322</id>
  <updated>2026-04-05T03:30:33Z</updated>
  <dc:date>2026-04-05T03:30:33Z</dc:date>
  <entry>
    <title>RE: Order Message Board</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118155687" />
    <author>
      <name>Vikash Chandrol</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118155687</id>
    <updated>2019-12-25T14:53:09Z</updated>
    <published>2019-12-25T14:53:09Z</published>
    <summary type="html">Hi Arun,&lt;br /&gt;&lt;br /&gt;Please create the fragment project of the message board portlet(web version) and override view_entries.jsp(from message_boards_admin folder). &lt;br /&gt;there you can find below a line of code.&lt;br /&gt;&lt;br /&gt;SearchContainer entriesSearchContainer = (SearchContainer)request.getAttribute(&amp;#34;view.jsp-entriesSearchContainer&amp;#34;);&lt;br /&gt;using searchcontainer object you can get list of results(by using  getResults() ) .&lt;br /&gt;so you can easily apply your logic to set specific order( using comprator or comprable java api)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sample Logic&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;List&amp;lt;Object&amp;gt; customResults=entriesSearchContainer.getResults();&lt;br /&gt;&lt;br /&gt;//you can add custom order logic here over the customResults object.&lt;br /&gt;&lt;br /&gt;entriesSearchContainer.setResults(customResults); // assign back to search container.&lt;br /&gt;&lt;br /&gt;Happy Coding &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Vikash Chandrol</dc:creator>
    <dc:date>2019-12-25T14:53:09Z</dc:date>
  </entry>
  <entry>
    <title>Order Message Board</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118155321" />
    <author>
      <name>Arun Pandian</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118155321</id>
    <updated>2019-12-25T14:20:01Z</updated>
    <published>2019-12-25T14:20:01Z</published>
    <summary type="html">Hi, Is there a way i can order the message board by displaying last created category as first?&lt;br /&gt;is there any configuration available or is it possible by jsp override?</summary>
    <dc:creator>Arun Pandian</dc:creator>
    <dc:date>2019-12-25T14:20:01Z</dc:date>
  </entry>
</feed>
