I have a problem with my sorting function. Namely, my code works only in Firefox, but few months ago it was working on every browser. Do you have any solution for that? Every sorting function is similar, so I'm pasting only one of them:
Here's my fiddle: https://jsfiddle.net/zfa6qkt5/13/
handleSortNoteAsc = () => {
let sortedAsc = this.state.data.sort(function(a, b) {return a.note > b.note});
this.setState({
data: sortedAsc
})
};
handleSortNoteDesc = () => {
let sortedDesc = this.state.data.sort(function(a, b) {return a.note < b.note});
this.setState({
data: sortedDesc
})
};