<?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>Multiply "order by" tags</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120020908" />
  <subtitle>Multiply "order by" tags</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120020908</id>
  <updated>2026-04-04T01:34:00Z</updated>
  <dc:date>2026-04-04T01:34:00Z</dc:date>
  <entry>
    <title>RE: Multiply "order by" tags</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120026463" />
    <author>
      <name>Jacques Merette</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120026463</id>
    <updated>2020-09-30T00:35:45Z</updated>
    <published>2020-09-30T00:35:45Z</published>
    <summary type="html">That is smart.  Thanks!!!!!!</summary>
    <dc:creator>Jacques Merette</dc:creator>
    <dc:date>2020-09-30T00:35:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: Multiply "order by" tags</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120025917" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120025917</id>
    <updated>2020-09-29T13:00:00Z</updated>
    <published>2020-09-29T13:00:00Z</published>
    <summary type="html">The single order by in service.xml is the default one.&lt;br /&gt;&lt;br /&gt;The persistence layer allows for passing in custom order by comparator instances, so you all need to do is add a method to your XxxLocalServiceImpl to expose a method that passes a different comparator to the XxxPersistenceImpl class.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2020-09-29T13:00:00Z</dc:date>
  </entry>
  <entry>
    <title>Multiply "order by" tags</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120020907" />
    <author>
      <name>Jacques Merette</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120020907</id>
    <updated>2020-09-28T19:05:35Z</updated>
    <published>2020-09-28T19:05:35Z</published>
    <summary type="html">Hi, It sounds like you can have only one &amp;#34;particular order&amp;#34; in a service entity service.  What do you do if you need a second ordering? Do I need to create a second entity for the same table? Maybe a custom sql querie is a better solution....MErci!</summary>
    <dc:creator>Jacques Merette</dc:creator>
    <dc:date>2020-09-28T19:05:35Z</dc:date>
  </entry>
</feed>
