Fix ambassador's nickname search

This commit is contained in:
Letícia Camara 2018-10-29 16:10:08 -03:00
parent cda1052c53
commit f525d6ef40

View file

@ -93,8 +93,8 @@ class EnhancedTable extends Component {
const data = const data =
order === 'desc' order === 'desc'
? this.state.data.sort((a, b) => (b[orderBy] < a[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] < b[orderBy] ? -1 : 1)); : this.state.data.sort((a, b) => (a[orderBy].toLowerCase() < b[orderBy].toLowerCase() ? -1 : 1));
this.setState({ data, order, orderBy }); this.setState({ data, order, orderBy });
}; };