From 9efade745c03873a95f95d44410e455ad4d97396 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 15 Jul 2015 18:30:15 +0200 Subject: [PATCH] Add order_by. --- accountant/api/models/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accountant/api/models/accounts.py b/accountant/api/models/accounts.py index 00a7780..d5dfb0e 100644 --- a/accountant/api/models/accounts.py +++ b/accountant/api/models/accounts.py @@ -107,7 +107,7 @@ class Account(db.Model): status_query, status_query.c.account_id == cls.id ) - return query + return query.order_by(cls.name) @validates('authorized_overdraft') def validate_authorized_overdraft(self, key, authorized_overdraft):