diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getAccountList.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getAccountList.xml
index b2496423155881356f49a199985f91855a249c6a..ffa0f93069cd99c1f5a4fb6381da6b8966d00dbf 100644
--- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getAccountList.xml
+++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getAccountList.xml
@@ -53,14 +53,10 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>def sort_method(a, b):\n
-  return cmp(a.Account_getFormattedTitle(),\n
-             b.Account_getFormattedTitle())\n
-\n
-account_list = [a.getObject() for a in context.getPortalObject().account_module.searchFolder(\n
+            <value> <string>account_list = [a.getObject() for a in context.getPortalObject().account_module.searchFolder(\n
                validation_state=\'validated\')]\n
 \n
-account_list.sort(sort_method)\n
+account_list.sort(key=lambda account: account.Account_getFormattedTitle())\n
 return account_list\n
 </string> </value>
         </item>
@@ -98,7 +94,6 @@ return account_list\n
                         <key> <string>co_varnames</string> </key>
                         <value>
                           <tuple>
-                            <string>sort_method</string>
                             <string>append</string>
                             <string>$append0</string>
                             <string>_getiter_</string>
diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision
index e0c1820214c8224c0826cc2fce96843818aa712b..8d0003f4668834ef1138cf7df42f663fce94ead0 100644
--- a/bt5/erp5_budget/bt/revision
+++ b/bt5/erp5_budget/bt/revision
@@ -1 +1 @@
-244
\ No newline at end of file
+245
\ No newline at end of file