diff --git a/CHANGELOG.md b/CHANGELOG.md index ae8a870..0525c06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +### [5.1.2](https://github.com/eea/volto-widget-temporal-coverage/compare/5.1.1...5.1.2) - 20 June 2023 + +#### :hammer_and_wrench: Others + +- test: Provide a compare function to avoid sorting elements alphabetically. [Alin Voinea - [`363df13`](https://github.com/eea/volto-widget-temporal-coverage/commit/363df1399a8a59efc4081d575a608ac9b2bf5d37)] ### [5.1.1](https://github.com/eea/volto-widget-temporal-coverage/compare/5.1.0...5.1.1) - 12 June 2023 #### :rocket: New Features diff --git a/package.json b/package.json index 686b3a2..497ec65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-widget-temporal-coverage", - "version": "5.1.1", + "version": "5.1.2", "description": "volto-widget-temporal-coverage: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/helpers.js b/src/helpers.js index 2b71d5f..815a6d4 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -83,6 +83,6 @@ export function getIndividualValues(values) { } } } - year_values.sort(); + year_values.sort((a, b) => a - b); return year_values.map((year) => createOption(year)); }