Sort shownames and season numbers

This commit is contained in:
dbr
2008-10-20 19:06:18 +10:30
parent 9ecc610b0f
commit 40cf5b8d4f

View File

@@ -193,7 +193,7 @@ class ShowContainer:
def __str__(self): def __str__(self):
out="" out=""
for current_show_name, current_show in self.shows.items(): for current_show_name, current_show in sorted( self.shows.items() ):
out += str(current_show) + "\n" out += str(current_show) + "\n"
return out return out
@@ -219,7 +219,7 @@ class Show:
def __str__(self): def __str__(self):
out = self.show_name + "\n" out = self.show_name + "\n"
for cur_season_no, cur_season in self.seasons.items(): for cur_season_no, cur_season in sorted( self.seasons.items() ):
out += str(cur_season) + "\n" out += str(cur_season) + "\n"
return out return out
#end __str__ #end __str__