Skip to content

Commit

Permalink
Merge pull request #1071 from danrice01/patch-1
Browse files Browse the repository at this point in the history
Fixing sorter typo
  • Loading branch information
mohsen1 committed Mar 26, 2015
2 parents cc34e27 + 7979f75 commit 311abe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/javascript/view/MainView.js
@@ -1,7 +1,7 @@
'use strict';

SwaggerUi.Views.MainView = Backbone.View.extend({
apisSorters : {
apisSorter : {
alpha : function(a,b){ return a.name.localeCompare(b.name); }
},
operationsSorters : {
Expand All @@ -20,7 +20,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
if (_.isFunction(sorterOption)) {
sorterFn = sorterOption;
} else {
sorterFn = this.apisSorters[sorterOption];
sorterFn = this.apisSorter[sorterOption];
}
if (_.isFunction(sorterFn)) {
this.model.apisArray.sort(sorterFn);
Expand Down

0 comments on commit 311abe7

Please sign in to comment.