diff options
author | suelockwood <deathbear@apache.org> | 2014-02-27 16:15:51 -0500 |
---|---|---|
committer | suelockwood <deathbear@apache.org> | 2014-02-27 16:15:51 -0500 |
commit | ff718a6ac3fad510fa20e66621a208dd8defd467 (patch) | |
tree | 30a7a81cfbeada53d926ee0a9c4e131eed6fa264 | |
parent | 055219f106b271dc17f0e469fb967489f4ef962e (diff) | |
download | couchdb-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.js | 5 |
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'; }, |