Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         var names = [];
  2.        
  3.         for (var i in reach.var.d.c) {
  4.             names.push(reach.var.d.c[i]);
  5.         }
  6.        
  7.         names.sort((a, b) => {
  8.             if (a.un < b.un) {
  9.                 return 1;
  10.             }
  11.             else if (a.un == b.un) {
  12.                 return 0;
  13.             }
  14.             else {
  15.                 return -1;
  16.             }
  17.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement