Guest User

Untitled

a guest
May 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. function table_sort($a, $b)
  2.         {
  3.             if($a['points'] == $b['points'])
  4.             {
  5.                 return $a['plusminus'] < $b['plusminus'] ? +1 : -1;
  6.             }
  7.            
  8.             return $a['points'] < $b['points'] ? 1 : -1;
  9.         }
Add Comment
Please, Sign In to add comment