From 70317ca4e390739d0f547530058764f3f33ce297 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Thu, 2 Feb 2012 10:29:57 +0100 Subject: [PATCH] Sort radios --- modules/radiofrance/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/radiofrance/backend.py b/modules/radiofrance/backend.py index e3c36dbe..9697f69b 100644 --- a/modules/radiofrance/backend.py +++ b/modules/radiofrance/backend.py @@ -159,7 +159,7 @@ class RadioFranceBackend(BaseBackend, ICapRadio, ICapCollection): if len(splited_path) > 0: raise CollectionNotFound() - for id in self._RADIOS.iterkeys(): + for id in sorted(self._RADIOS.iterkeys()): yield self.get_radio(id) def iter_radios_search(self, pattern):