fix(xo-web/home): always sort by name_label as a secondary sort (#4047)
Fixes #3983
This commit is contained in:
parent
558083a916
commit
b71f4f6800
@ -4,6 +4,8 @@
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- [Home] Always sort the items by their names as a secondary sort criteria [#3983](https://github.com/vatesfr/xen-orchestra/issues/3983) (PR [#4047](https://github.com/vatesfr/xen-orchestra/pull/4047))
|
||||
|
||||
### Released packages
|
||||
|
||||
- xo-server v5.38.0
|
||||
|
@ -674,7 +674,10 @@ export default class Home extends Component {
|
||||
|
||||
_getFilteredItems = createSort(
|
||||
createFilter(() => this.props.items, this._getFilterFunction),
|
||||
() => this.state.sortBy,
|
||||
createSelector(
|
||||
() => this.state.sortBy,
|
||||
sortBy => [sortBy, 'name_label']
|
||||
),
|
||||
() => this.state.sortOrder
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user