Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

use localeCompare instead

Mike McGann5aec5f4f1410
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.js
index 2aeedc72d..0b3734239 100644
--- a/web/js/layers/modal.js
+++ b/web/js/layers/modal.js
@@ -530,7 +530,8 @@ export function layersModal(models, ui, config) {
// Begin source level
let values = Object.values(current.sources);
- values.sort((a, b) => a.title > b.title);
+ values.sort((a, b) => a.title.localeCompare(b.title));
+ console.log('SORTED', values);
values.forEach((source) => {
var isMetadataExpanded;
// Check if sources have settings with the same projection.