Fix ambassador's nickname search

mx
Letícia Camara 2018-10-29 16:10:08 -03:00
parent cda1052c53
commit f525d6ef40
1 changed files with 2 additions and 2 deletions

View File

@ -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 });
};