From db6cf9ab68c3666a92fae5ebb0aaad9b637fa36b Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 23 Sep 2010 00:02:46 -0400 Subject: [PATCH] Improve deck card sorting --- analyzer/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzer/models.py b/analyzer/models.py index 490495a..efa1db3 100755 --- a/analyzer/models.py +++ b/analyzer/models.py @@ -32,7 +32,7 @@ class Deck(models.Model): def __unicode__(self): return self.name def get_cards(self): - return self.included_set.all().order_by('card__type__name') + return self.included_set.all().order_by('card__type__name', 'card__name') def card_count(self): return sum([i.count for i in self.included_set.all()]) def lands(self):