You are here

function footable_breakpoint_sort in FooTable 7.2

Sort FooTable breakpoint by breakpoint with name as a fallback.

2 string references to 'footable_breakpoint_sort'
footable_breakpoint_load_all in ./footable.module
Returns a list of FooTable breakpoints including or excluding the default FooTable breakpoints (All / Default).
footable_breakpoint_load_multiple in ./footable.module
Returns a list of FooTable breakpoints filtered by machine name.

File

./footable.module, line 353
Provides Views integration for the jQuery FooTable plugin.

Code

function footable_breakpoint_sort($a, $b) {
  if ($a->breakpoint == $b->breakpoint) {
    return strnatcasecmp($a->name, $b->name);
  }
  return $a->breakpoint < $b->breakpoint ? -1 : 1;
}