Advertisement
Guest User

Untitled

a guest
Nov 25th, 2019
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const sorted = cloned.sort(({[sortKey]: a}, {[sortKey]: b}) => {
  2.   return a.toLowerCase().localeCompare(b.toLowerCase());
  3. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement