WordPress开发者和主题制作者的搜索引擎



_sort_uname_callback ›

Since3.1.0
已弃用n/a
_sort_uname_callback ( $a, $b )
访问:
  • private
参数: (2)
  • (array) $a array with 'Name' key.
    Required: Yes
  • (array) $b array with 'Name' key.
    Required: Yes
返回:
  • (int) Return 0 or 1 based on two string comparison.
定义在:
文档:

Callback to sort array by a 'Name' key.



源码

function _sort_uname_callback( $a, $b ) {
	return strnatcasecmp( $a['Name'], $b['Name'] );
}