Sort radios

This commit is contained in:
Laurent Bachelier 2012-02-02 10:29:57 +01:00 committed by Romain Bignon
commit 70317ca4e3

View file

@ -159,7 +159,7 @@ class RadioFranceBackend(BaseBackend, ICapRadio, ICapCollection):
if len(splited_path) > 0: if len(splited_path) > 0:
raise CollectionNotFound() raise CollectionNotFound()
for id in self._RADIOS.iterkeys(): for id in sorted(self._RADIOS.iterkeys()):
yield self.get_radio(id) yield self.get_radio(id)
def iter_radios_search(self, pattern): def iter_radios_search(self, pattern):