summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbear@apache.org>2014-02-27 16:15:51 -0500
committersuelockwood <deathbear@apache.org>2014-02-27 16:15:51 -0500
commitff718a6ac3fad510fa20e66621a208dd8defd467 (patch)
tree30a7a81cfbeada53d926ee0a9c4e131eed6fa264
parent055219f106b271dc17f0e469fb967489f4ef962e (diff)
downloadcouchdb-2126-Configuration-page-broken.tar.gz
Added comparitor to the configuration collection for alphabetical sorting2126-Configuration-page-broken
-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';
},