Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Granule list sorted by label

Mike McGannf7a4d7be4373
diff --git a/src/js/Worldview/DataDownload/SelectionListPanel.js b/src/js/Worldview/DataDownload/SelectionListPanel.js
index 69885a651..d668dd106 100644
--- a/src/js/Worldview/DataDownload/SelectionListPanel.js
+++ b/src/js/Worldview/DataDownload/SelectionListPanel.js
@@ -131,6 +131,15 @@ Worldview.DataDownload.SelectionListPanel = function(config, model) {
item.links.push(reformatLink(link));
});
product.list.push(item);
+ });
+ product.list.sort(function(a, b) {
+ if ( a.label > b.label ) {
+ return 1;
+ }
+ if ( a.label < b.label ) {
+ return -1;
+ }
+ return 0;
});
});