Skip to content

Commit

Permalink
Merge 4716e7f into bf6ced4
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonjean committed Feb 8, 2017
2 parents bf6ced4 + 4716e7f commit 749f478
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/js/stores/AppVersionsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ var AppVersionsStore = Util.extendObject(EventEmitter.prototype, {

getAppVersions: function (appId) {
if (appId === storeData.currentAppId) {
return this.availableAppVersions;
return this.availableAppVersions
.sort(function (a, b) {
if (a < b) {
return 1;
}
if (a > b) {
return -1;
}
return 0;
});
}
return [];
},
Expand Down

0 comments on commit 749f478

Please sign in to comment.