# gutenberg/14.7.0/lib/compat/wordpress-6.0/functions.php

Gutenberg, version 14.7.0. 28 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/14.7.0/code/lib/compat/wordpress-6.0/functions.php
- Raw: https://pluginprobe.com/plugins/gutenberg/14.7.0/raw/lib/compat/wordpress-6.0/functions.php
- Modified: 2022-04-14T11:52:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/14.7.0/code/lib/compat/wordpress-6.0/functions.php#L10-L20`.

```php
<?php
/**
 * Generic helper functions.
 *
 * @package WordPress
 * @since 6.0.0
 */

if ( ! function_exists( 'wp_recursive_ksort' ) ) {
	/**
	 * Sorts the keys of an array alphabetically.
	 * The array is passed by reference so it doesn't get returned
	 * which mimics the behaviour of ksort.
	 *
	 * @since 6.0.0
	 *
	 * @param array $array The array to sort, passed by reference.
	 */
	function wp_recursive_ksort( &$array ) {
		foreach ( $array as &$value ) {
			if ( is_array( $value ) ) {
				wp_recursive_ksort( $value );
			}
		}
		ksort( $array );
	}
}

```
