@eeacms/volto-clms-theme 1.0.142 → 1.0.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [1.0.143](https://github.com/eea/volto-clms-theme/compare/1.0.142...1.0.143) - 8 November 2022
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: sort technical library items according to 2 indexes [Mikel Larreategi - [`3224a3c`](https://github.com/eea/volto-clms-theme/commit/3224a3c98cec0793759bf7dac6787dce4774449b)]
12
+
7
13
  ### [1.0.142](https://github.com/eea/volto-clms-theme/compare/1.0.141...1.0.142) - 8 November 2022
8
14
 
9
15
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.142",
3
+ "version": "1.0.143",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -51,8 +51,8 @@ const CclRelatedListingView = (props) => {
51
51
  sort_order = 'descending';
52
52
  } else if (data.content_type === 'TechnicalLibrary') {
53
53
  //if documentation_sorting is null the TechnicalLibrary is not stored in libraries [BACKEND]
54
- sort_on = 'documentation_sorting';
55
- sort_order = 'ascending';
54
+ sort_on = ['documentation_sorting', 'sortable_title'];
55
+ sort_order = ['ascending', 'ascending'];
56
56
  }
57
57
 
58
58
  React.useEffect(() => {
@@ -30,8 +30,8 @@ const DataSetInfoContent = (props) => {
30
30
  portal_type: 'TechnicalLibrary',
31
31
  path: '/',
32
32
  associated_datasets: UID,
33
- sort_on: 'documentation_sorting',
34
- sort_order: 'ascending',
33
+ sort_on: ['documentation_sorting', 'sortable_title'],
34
+ sort_order: ['ascending', 'ascending'],
35
35
  },
36
36
  id,
37
37
  ),