Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const sortCompare = (a, b, order = 1) => {
- if (a > b) return order;
- if (a < b) return order * -1;
- return 0;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement