Fix ambassador's nickname search
This commit is contained in:
parent
cda1052c53
commit
f525d6ef40
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ class EnhancedTable extends Component {
|
|||
|
||||
const data =
|
||||
order === 'desc'
|
||||
? this.state.data.sort((a, b) => (b[orderBy] < a[orderBy] ? -1 : 1))
|
||||
: this.state.data.sort((a, b) => (a[orderBy] < b[orderBy] ? -1 : 1));
|
||||
? this.state.data.sort((a, b) => (b[orderBy].toLowerCase() < a[orderBy].toLowerCase() ? -1 : 1))
|
||||
: this.state.data.sort((a, b) => (a[orderBy].toLowerCase() < b[orderBy].toLowerCase() ? -1 : 1));
|
||||
|
||||
this.setState({ data, order, orderBy });
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue