You are here

function site_disclaimer_sort in Site Disclaimer 7

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

Sort functions for usort().

Related topics

1 string reference to 'site_disclaimer_sort'
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 65
Provide views data and handlers for site_disclaimer.module

Code

function site_disclaimer_sort($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);
}