_sort_nav_menu_items
- %1$s is private and should not be used in themes or plugins directly.
- _sort_nav_menu_items is deprecated since version 4.7.0!
Alternative: wp_list_sort()
_sort_nav_menu_items ( $a, $b )
Access:Parameters:- (object) a The first object to compare
- (object) b The second object to compare
Returns:- (int) -1, 0, or 1 if $a is considered to be respectively less than, equal to, or greater than $b.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: 4.7.0
Description
Sort menu items by the desired key.