wordpress/wp-content/themes/basic/themify/tinymce/class-themify-tinymce.php
/**
	 * Callback for usort and uasort, sorts the array by the 'priority' key
	 * Default priority for all keys is 10
	 *
	 * @return int
	 */
Callback for usort and uasort, sorts the array by the 'priority' key
Default priority for all keys is 10

@return int
Callback for usort and uasort sorts the array by the ' priority ' key Default priority for all keys is 10 @return int
function sort_by_priority_key( $item1, $item2 ) {
		$i1p = isset( $item1['priority'] ) ? $item1['priority'] : 10;
		$i2p = isset( $item2['priority'] ) ? $item2['priority'] : 10;
		if( $i1p == $i2p ) return 0;
		return $i1p < $i2p ? -1 : 1;
	}
function sort_by_priority_key ( $ item1 , $ item2 ) { $ i1p = isset ( $ item1 [ 'priority' ] ) ? $ item1 [ 'priority' ] : 10 ; $ i2p = isset ( $ item2 [ 'priority' ] ) ? $ item2 [ 'priority' ] : 10 ; if ( $ i1p == $ i2p ) return 0 ; return $ i1p < $ i2p ? - 1 : 1 ; }
Callback for usort and uasort, sorts the array by the 'priority' key
 Default priority for all keys is 10
Callback for usort and uasort sorts the array by the ' priority ' key Default priority for all keys is 10