Commit 98448000 authored by Romain Courteaud's avatar Romain Courteaud

Sort document by revision, in case of multiple documents with the same version and reference.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20327 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f237be84
......@@ -42,7 +42,7 @@
<key> <string>_keys</string> </key>
<value>
<list>
<string>reference</string>
<string>reference</string>
</list>
</value>
</item>
......@@ -140,7 +140,7 @@ FROM\n
<dtml-sqltest "\'%\'+str(reference)+\'%\'" column=SearchableText op=like type=string>\n
AND\n
<dtml-sqltest reference op=ne type=string>\n
ORDER BY reference, language_order DESC, version DESC\n
ORDER BY reference, language_order DESC, version DESC, revision DESC\n
) AS innersub\n
)\n
AS sub\n
......@@ -226,7 +226,7 @@ FROM\n
<dtml-sqltest "\'%\'+str(reference)+\'%\'" column=SearchableText op=like type=string>\n
AND\n
<dtml-sqltest reference op=ne type=string>\n
ORDER BY reference, language_order DESC, version DESC\n
ORDER BY reference, language_order DESC, version DESC, revision DESC\n
) AS innersub\n
)\n
AS sub\n
......
......@@ -42,7 +42,7 @@
<key> <string>_keys</string> </key>
<value>
<list>
<string>reference_list</string>
<string>reference_list</string>
</list>
</value>
</item>
......@@ -141,7 +141,7 @@ FROM\n
<dtml-unless sequence-end> OR </dtml-unless>\n
</dtml-in>\n
)\n
ORDER BY reference, language_order DESC, version DESC\n
ORDER BY reference, language_order DESC, version DESC, revision DESC\n
) AS innersub\n
)\n
AS sub\n
......@@ -228,7 +228,7 @@ FROM\n
<dtml-unless sequence-end> OR </dtml-unless>\n
</dtml-in>\n
)\n
ORDER BY reference, language_order DESC, version DESC\n
ORDER BY reference, language_order DESC, version DESC, revision DESC\n
) AS innersub\n
)\n
AS sub\n
......
868
\ No newline at end of file
869
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment