From: W. Trevor King Date: Mon, 2 Apr 2012 17:21:36 +0000 (-0400) Subject: Sort NamedItems by abbrev first, since that's often what we use. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7fa2651a6ac4dff65650cbba504172bcf4d0fc3f;p=chemdb.git Sort NamedItems by abbrev first, since that's often what we use. --- 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)