Commit 3613a225 authored by Łukasz Nowak's avatar Łukasz Nowak

Sort by creation_date.

It is now available and gives better results than uid sort.
parent 5bfbd584
...@@ -608,7 +608,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -608,7 +608,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
transaction_list = self.portal.portal_catalog( transaction_list = self.portal.portal_catalog(
portal_type="Sale Invoice Transaction", portal_type="Sale Invoice Transaction",
destination_section_relative_url=person.getRelativeUrl(), destination_section_relative_url=person.getRelativeUrl(),
sort_on=(('uid', 'DESC'),), sort_on=(('creation_date', 'DESC'),),
) )
self.assertEquals(2, len(transaction_list)) self.assertEquals(2, len(transaction_list))
...@@ -786,7 +786,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -786,7 +786,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
transaction_list = self.portal.portal_catalog( transaction_list = self.portal.portal_catalog(
portal_type="Sale Invoice Transaction", portal_type="Sale Invoice Transaction",
destination_section_relative_url=person.getRelativeUrl(), destination_section_relative_url=person.getRelativeUrl(),
sort_on=(('uid', 'DESC'),), sort_on=(('creation_date', 'DESC'),),
) )
self.assertEquals(2, len(transaction_list)) self.assertEquals(2, len(transaction_list))
...@@ -1090,7 +1090,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -1090,7 +1090,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
transaction_list = self.portal.portal_catalog( transaction_list = self.portal.portal_catalog(
portal_type="Sale Invoice Transaction", portal_type="Sale Invoice Transaction",
destination_section_relative_url=person.getRelativeUrl(), destination_section_relative_url=person.getRelativeUrl(),
sort_on=(('uid', 'DESC'),), sort_on=(('creation_date', 'DESC'),),
) )
self.assertEquals(2, len(transaction_list)) self.assertEquals(2, len(transaction_list))
......
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