From 7fa2651a6ac4dff65650cbba504172bcf4d0fc3f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 2 Apr 2012 13:21:36 -0400 Subject: [PATCH] Sort NamedItems by abbrev first, since that's often what we use. --- chemdb/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chemdb/models.py b/chemdb/models.py index 9aa4e9c..f4a02f4 100644 --- a/chemdb/models.py +++ b/chemdb/models.py @@ -13,7 +13,7 @@ class NamedItem (_models.Model): class Meta: abstract = True - ordering = ['name'] + ordering = ['abbrev', 'name'] def __unicode__(self): return u'{0.abbrev}'.format(self) -- 2.26.2