Sort by account name

Trial balance not sorted .. by adding those changes fixes the problem.
diff --git a/erpnext/accounts/report/trial_balance/trial_balance.py b/erpnext/accounts/report/trial_balance/trial_balance.py
index 9eea472..ba6d00b 100644
--- a/erpnext/accounts/report/trial_balance/trial_balance.py
+++ b/erpnext/accounts/report/trial_balance/trial_balance.py
@@ -52,7 +52,7 @@
 
 def get_data(filters):
 	accounts = frappe.db.sql("""select name, parent_account, account_name, root_type, report_type, lft, rgt
-		from `tabAccount` where company=%s order by lft""", filters.company, as_dict=True)
+		from `tabAccount` where company=%s order by account_name,lft""", filters.company, as_dict=True)
 	company_currency = erpnext.get_company_currency(filters.company)
 
 	if not accounts:
@@ -168,7 +168,8 @@
 
 def prepare_data(accounts, filters, total_row, parent_children_map, company_currency):
 	data = []
-	
+	tmpacnt = sorted(accounts)
+	accounts = tmpacnt
 	for d in accounts:
 		has_value = False
 		row = {