Skip to content

Commit

Permalink
Merge pull request #29 from eea/develop
Browse files Browse the repository at this point in the history
test: Provide a compare function to avoid sorting elements alphabetically.
  • Loading branch information
avoinea authored Jun 20, 2023
2 parents 502fe9e + 44c52af commit c43b4eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit c43b4eb

Please sign in to comment.