<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Improper sorting when using pagination in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185759#M138889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp; Is there any reason why there is no check on&amp;nbsp; orderby***Id methods to make sure that string is cast in to long or int before sorting then? i believe that would solve the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, as this would need to be done on the database level. I'm not sure if this 1) is possible 2) is good for performance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the use case for sorting on id? Generally, there shouldn't be a real need for it as it's 'internal detail'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 13:02:19 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-06-20T13:02:19Z</dc:date>
    <item>
      <title>Improper sorting when using pagination</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185753#M138883</link>
      <description>It seems that sorting and pagination don't work as I expect.I had expected that the sort would be applied BEFORE choosing a page from the sorted results.Instead the sort seems to be applied AFTER getting the specified page.Behavior is consistent between both REST and the Java library For example:RES</description>
      <pubDate>Wed, 09 Jul 2014 19:22:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185753#M138883</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-07-09T19:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Improper sorting when using pagination</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185754#M138884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A unit test to demonstrate the behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Output 100 tasks sorted by dueDate as one page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Followed by same query paginated via "listPage" by 10 pages of 10 tasks each.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 21:16:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185754#M138884</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-07-09T21:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Improper sorting when using pagination</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185755#M138885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 14:54:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185755#M138885</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-07-18T14:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Improper sorting when using pagination</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185756#M138886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your unit test you use includeProcessVariables. There's an issue with database sorting with the variables query on some databases. That's why we do that bit in memory. If you don't included the process variables in the query it will use database sorting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:04:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185756#M138886</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-07-21T09:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Improper sorting when using pagination</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185757#M138887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting.&amp;nbsp; I guess that would explain why Activiti-Explorer was showing the same bad behavior when trying to sort completed tasks by due date&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 17:25:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185757#M138887</guid>
      <dc:creator>leggebroten</dc:creator>
      <dc:date>2014-07-24T17:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Improper sorting when using pagination</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185758#M138888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have the same issue on sorting while using pagination, specifically sorting by id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested it in all task, process instances and deployment queries. If i understand it correctly the id's in activiti are set as strings and sorting based on id gives improper results. Is there any reason why there is no check on &amp;lt;java&amp;gt; orderby***Id &amp;lt;/java&amp;gt; methods to make sure that string is cast in to long or int before sorting then? i believe that would solve the issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there any currently available way to resolve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- i did not include&amp;lt;java&amp;gt;includeProcessInstanceVariables &amp;lt;/java&amp;gt; in my queries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- i am using activiti 5.19.0.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:20:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185758#M138888</guid>
      <dc:creator>tgebeyehu</dc:creator>
      <dc:date>2016-06-14T13:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Improper sorting when using pagination</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185759#M138889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp; Is there any reason why there is no check on&amp;nbsp; orderby***Id methods to make sure that string is cast in to long or int before sorting then? i believe that would solve the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, as this would need to be done on the database level. I'm not sure if this 1) is possible 2) is good for performance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the use case for sorting on id? Generally, there shouldn't be a real need for it as it's 'internal detail'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 13:02:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/improper-sorting-when-using-pagination/m-p/185759#M138889</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-20T13:02:19Z</dc:date>
    </item>
  </channel>
</rss>

