You are here

function _rate_sort in Rate 6.2

Same name and namespace in other branches
  1. 7 rate.admin.inc \_rate_sort()

Callback for uasort().

See also

rate_admin_page()

http://php.net/uasort

1 string reference to '_rate_sort'
rate_admin_page in ./rate.admin.inc
Menu callback.

File

./rate.admin.inc, line 49
Rating admin

Code

function _rate_sort($a, $b) {
  if ($a->title == $b->title) {
    return 0;
  }
  return $a->title < $b->title ? -1 : 1;
}