From 9d4069d9ae6d516db65ba2fb0eb05dbe1d743bae Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 17 Mar 2025 16:44:23 +0100 Subject: [PATCH] chore: order importers by name instead of id Co-authored-by: David Larlet --- umap/static/umap/js/modules/importer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js index b6d1a59a..83e09812 100644 --- a/umap/static/umap/js/modules/importer.js +++ b/umap/static/umap/js/modules/importer.js @@ -176,7 +176,7 @@ export default class Importer extends Utils.WithTemplate { showImporters() { if (!this.IMPORTERS.length) return const [element, { grid }] = Utils.loadTemplateWithRefs(GRID_TEMPLATE) - for (const plugin of this.IMPORTERS.sort((a, b) => (a.id > b.id ? 1 : -1))) { + for (const plugin of this.IMPORTERS.sort((a, b) => (a.name > b.name ? 1 : -1))) { const button = Utils.loadTemplate( `
  • ` )