diff --git a/meteor/client/lib/imageutil.js b/meteor/client/lib/imageutil.js index 384c1bff64..4aa4548bf5 100644 --- a/meteor/client/lib/imageutil.js +++ b/meteor/client/lib/imageutil.js @@ -291,7 +291,7 @@ ImageUtil.sync = function (callback) { docker: image, buildLogs: [], createdAt: new Date(), - tags: image.RepoTags, + tags: image.RepoTags.sort(), meta: meta }; Images.insert(imageObj); @@ -311,7 +311,7 @@ ImageUtil.sync = function (callback) { if (imageData && imageData.RepoTags) { Images.update(image._id, { $set: { - tags: imageData.RepoTags + tags: imageData.RepoTags.sort() } }); } diff --git a/meteor/client/views/dashboard/apps/dashboard-single-app.html b/meteor/client/views/dashboard/apps/dashboard-single-app.html index 61449e019b..99a4f00725 100755 --- a/meteor/client/views/dashboard/apps/dashboard-single-app.html +++ b/meteor/client/views/dashboard/apps/dashboard-single-app.html @@ -19,7 +19,7 @@ {{/if}} {{/if}} {{name}} - {{displayTags image.tags}} + {{displayTags image.tags ', '}}