Skip to content

Commit

Permalink
Merge pull request #2858 from HSLdevcom/DT-3094
Browse files Browse the repository at this point in the history
Fix ticket sorting
  • Loading branch information
joonasrissanen authored Jul 3, 2019
2 parents 91d6fcf + e4a1320 commit 31eecc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/component/CustomizeSearchNew.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ class CustomizeSearch extends React.Component {
}
});

// TODO this needs refactoring if new configurations use ticket selector
ticketOptions.sort((a, b) => {
return b.length - a.length > 1 ? -1 : 1;
return a.split('').reverse() > b.split('').reverse() ? 1 : -1;
});
}

Expand Down

0 comments on commit 31eecc7

Please sign in to comment.