summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbear@apache.org>2014-02-27 16:15:51 -0500
committersuelockwood <deathbear@apache.org>2014-02-28 12:42:49 -0500
commit929b3a08776674742353aab20d5f4adb331dd2a7 (patch)
tree8ff00646be64afcba58cc75be2f346df3e5a334f
parent0df722e66b66bbad172a237b6fd1521b4a346676 (diff)
downloadcouchdb-929b3a08776674742353aab20d5f4adb331dd2a7.tar.gz
Added comparitor to the configuration collection for alphabetical sorting
-rw-r--r--src/fauxton/app/addons/config/resources.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fauxton/app/addons/config/resources.js b/src/fauxton/app/addons/config/resources.js
index 14d247469..227e80dbe 100644
--- a/src/fauxton/app/addons/config/resources.js
+++ b/src/fauxton/app/addons/config/resources.js
@@ -51,6 +51,11 @@ function (app, FauxtonAPI) {
Config.Collection = Backbone.Collection.extend({
model: Config.Model,
documentation: "config",
+ comparator: function (OptionModel) {
+ if (OptionModel.get("section")) {
+ return OptionModel.get("section");
+ }
+ },
url: function () {
return app.host + '/_config';
},