diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getTransactionLineListForGroupingReference.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getTransactionLineListForGroupingReference.xml
index cd240e276b9ff0d333f141ef17f6ecf2997d1280..d9b6d6bc61ccb63c70102a9c86f4d3661e2afca7 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getTransactionLineListForGroupingReference.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getTransactionLineListForGroupingReference.xml
@@ -65,7 +65,7 @@ dialog_selection_params = portal.portal_selections.getSelectionParamsFor(\n
 \n
 # support pseudo sorting; sorting is done by uid.\n
 orig_sort_on = portal.portal_selections.getSelectionSortOrder(\n
-                 \'accounting_transaction_module_grouping_reference_fast_input\')\n
+                 \'accounting_transaction_module_grouping_reference_fast_input\') or ((\'date\', \'descending\'),)\n
 sort_on = []\n
 for sort_column, sort_order in orig_sort_on:\n
   if sort_column in (\'grouping_reference\', \'date\', \'parent_title\'):\n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 7bed0227374ae83cc50da61fd773b5770ea2c733..2f9aa03afc17caa39de85ec7cad8a7c52f6809c2 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-828
\ No newline at end of file
+829
\ No newline at end of file