diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 47a9fb4e1..bfdd20d98 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -483,15 +483,15 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): result.append(data) remaining.discard(color_name) + # Sort our result (by their keys) + result.sort(key=operator.itemgetter('name')) + # Ensure that we have all the color names we know about, so that if the # user deletes one he can still set it again via the web interface for color_name in remaining: color_desc = descriptions.get(color_name, '') result.append([color_name, color_desc, parse_color('')]) - # Sort our result (by their keys) - result.sort(key=operator.itemgetter('name')) - return result def do_get_functions(self):