Added comparitor to the configuration collection for alphabetical sorting
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/929b3a08 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/929b3a08 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/929b3a08 Branch: refs/heads/Query-Options-UI Commit: 929b3a08776674742353aab20d5f4adb331dd2a7 Parents: 0df722e Author: suelockwood <[email protected]> Authored: Thu Feb 27 16:15:51 2014 -0500 Committer: suelockwood <[email protected]> Committed: Fri Feb 28 12:42:49 2014 -0500 ---------------------------------------------------------------------- src/fauxton/app/addons/config/resources.js | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/929b3a08/src/fauxton/app/addons/config/resources.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/config/resources.js b/src/fauxton/app/addons/config/resources.js index 14d2474..227e80d 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'; },
