Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
empty is top-of-the-list. close #232.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrasca committed Dec 22, 2015
1 parent 5551216 commit 71b331b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bauble/plugins/plants/species_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def compare_rank(rank1, rank2):
'implement the binary comparison operation needed for sorting'

ordering = [u'familia', u'subfamilia', u'tribus', u'subtribus',
u'genus', u'subgenus', u'species', u'subsp.',
u'var.', u'subvar.', u'f.', u'subf.', u'cv.', None]
u'genus', u'subgenus', u'species', None, u'subsp.',
u'var.', u'subvar.', u'f.', u'subf.', u'cv.']
return ordering.index(rank1).__cmp__(ordering.index(rank2))


Expand Down

0 comments on commit 71b331b

Please sign in to comment.