Skip to content

Commit

Permalink
Sort history items by history id in success message
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jun 6, 2018
1 parent 39dc8cf commit 8e55b22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/galaxy/scripts/mvc/tool/tool-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ var View = Backbone.View.extend({

_templateRow: function(list, max = 3) {
var blurb = "";
list.sort(function(a, b){return b.hid - a.hid});
for (let item of list) {
let rowString = max > 0 ? `${item.hid}: ${item.name}` : "...";
blurb += `<p class="messagerow">
Expand Down

0 comments on commit 8e55b22

Please sign in to comment.