diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-11-05 08:48:33 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-11-05 08:48:33 +0100 |
| commit | f71de4386db42aad0a29d76c2e2ed8dd26796a57 (patch) | |
| tree | 7ed54065ea12446536e953c68a7a0f1688173eb5 /lib/python/Components/config.py | |
| parent | 8c877cd5c0fa7f79f1191ce9c5cc112abfcd0a68 (diff) | |
| parent | 5ded85314f4d8b221b885a443dc797632a2101cd (diff) | |
| download | enigma2-f71de4386db42aad0a29d76c2e2ed8dd26796a57.tar.gz enigma2-f71de4386db42aad0a29d76c2e2ed8dd26796a57.zip | |
Merge branch 'experimental' of git.opendreambox.org:/git/enigma2 into experimental
Diffstat (limited to 'lib/python/Components/config.py')
| -rwxr-xr-x | lib/python/Components/config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 876e3a34..d9f2104e 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -1184,7 +1184,10 @@ class ConfigSatlist(ConfigSelection): def __init__(self, list, default = None): if default is not None: default = str(default) - ConfigSelection.__init__(self, choices = [(str(orbpos), desc) for (orbpos, desc, flags) in list], default = default) + choices = [(str(orbpos), desc) for (orbpos, desc, flags) in list] + choices.sort(key = lambda x: int(x[0])) + + ConfigSelection.__init__(self, choices = choices, default = default) def getOrbitalPosition(self): if self.value == "": |
