grunion_sort_objects

The Jetpack by WordPress.com grunion sort objects function.

Description

grunion_sort_objects( $a, $b ); 

Parameters (2)

0. $a
The a.
1. $b
The b.

Usage

  1. if ( !function_exists( 'grunion_sort_objects' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/contact-form/admin.php'; 
  3.  
  4. // The a. 
  5. $a = null; 
  6.  
  7. // The b. 
  8. $b = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = grunion_sort_objects($a, $b); 
  12.  

Defined (1)

The function is defined in the following location(s).

/modules/contact-form/admin.php  
  1. function grunion_sort_objects( $a, $b ) { 
  2. if ( isset($a['order']) && isset($b['order']) ) 
  3. return $a['order'] - $b['order']; 
  4. return 0;