mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
[side nav] sort group list (#4027)
This commit is contained in:
@@ -54,7 +54,9 @@ class MainSideNav extends React.Component {
|
|||||||
|
|
||||||
this.groupsHeight = (groupList.length + 1) * _this.listHeight;
|
this.groupsHeight = (groupList.length + 1) * _this.listHeight;
|
||||||
_this.setState({
|
_this.setState({
|
||||||
groupItems: groupList
|
groupItems: groupList.sort((a, b) => {
|
||||||
|
return a.name.toLowerCase() < b.name.toLowerCase() ? -1 : 1;
|
||||||
|
})
|
||||||
});
|
});
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
let errMessage = Utils.getErrorMsg(error);
|
let errMessage = Utils.getErrorMsg(error);
|
||||||
|
Reference in New Issue
Block a user