Deprecated
This function has been deprecated. Using WP_List_Util::sort, hence this callback is not required anymore instead.
ap_sort_order_callback( array $a, array $b )
Description #
Callback for @uses ap_sort_array_by_order.
Parameters #
- $aarray (Required) Array.
- $barray (Required) Array.
Source #
File: includes/deprecated.php
function ap_sort_order_callback( $a, $b ) {
	_deprecated_function( __FUNCTION__, '4.1.0' );
	if ( $a['order'] == $b['order'] ) {
		return 0;
	}
	return ( $a['order'] < $b['order'] ) ? -1 : 1;
}
Expand full source code Collapse full source code View on GitHub: includes/deprecated.php:878
  Add your comment