Ticket #111: sorting.php
File sorting.php, 353 bytes (added by , 19 years ago) |
---|
Line | |
---|---|
1 | --- sorting.php.orig 2005-06-10 06:21:40.000000000 -0700 |
2 | +++ sorting.php 2005-06-12 07:08:54.000000000 -0700 |
3 | @@ -180,5 +180,9 @@ |
4 | return ($a->profile > $b->profile) ? 1 : -1; |
5 | } |
6 | |
7 | + function by_recpriority(&$a, &$b) { |
8 | + if ($a->recpriority == $b->recpriority) return 0; |
9 | + return ($a->recpriority < $b->recpriority) ? 1 : -1; |
10 | + } |
11 | |
12 | ?> |