From fd6f9bab7d14b67022c3504a8a2457e43baca3c4 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Mon, 8 Aug 2016 18:11:34 +0530 Subject: [PATCH] [ux improvement] Sort modules shown in user doctype --- frappe/core/doctype/user/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index 48763253eb..cec0909907 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -36,7 +36,7 @@ class User(Document): def onload(self): self.set_onload('all_modules', [m.module_name for m in frappe.db.get_all('Desktop Icon', - fields=['module_name'], filters={'standard': 1})]) + fields=['module_name'], filters={'standard': 1}, order_by="module_name")]) def validate(self): self.check_demo()