You are here

function site_disclaimer_rsort in Site Disclaimer 6

Same name and namespace in other branches
  1. 7 views/site_disclaimer.views.inc \site_disclaimer_rsort()

Related topics

1 string reference to 'site_disclaimer_rsort'
UNUSED_site_disclaimer_views_pre_render in views/site_disclaimer.views.inc
Implementation of hook views_pre_render(). Performs data sort after the query is executed.

File

views/site_disclaimer.views.inc, line 70
Provide views data and handlers for site_disclaimer.module

Code

function site_disclaimer_rsort($a, $b) {
  $acmp = is_object($a) && isset($a->site_disclaimer_sortby) ? $a->site_disclaimer_sortby : '';
  $bcmp = is_object($b) && isset($b->site_disclaimer_sortby) ? $b->site_disclaimer_sortby : '';
  return -strcmp($acmp, $bcmp);
}