From c44135a50bb7e3b43c26d90e66235f2b342695f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Wed, 23 Oct 2013 17:28:48 +0200 Subject: [PATCH] Renamed $sortby to $sortBy in sortByKey --- lib/Cake/basics.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Cake/basics.php b/lib/Cake/basics.php index ce5bd1d5ec3..4deb19c2c1b 100644 --- a/lib/Cake/basics.php +++ b/lib/Cake/basics.php @@ -125,22 +125,22 @@ function debug($var, $showHtml = null, $showFrom = true) { if (!function_exists('sortByKey')) { /** - * Sorts given $array by key $sortby. + * Sorts given $array by key $sortBy. * * @param array $array Array to sort - * @param string $sortby Sort by this key + * @param string $sortBy Sort by this key * @param string $order Sort order asc/desc (ascending or descending). * @param integer $type Type of sorting to perform * @return mixed Sorted array * @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#sortByKey */ - function sortByKey(&$array, $sortby, $order = 'asc', $type = SORT_NUMERIC) { + function sortByKey(&$array, $sortBy, $order = 'asc', $type = SORT_NUMERIC) { if (!is_array($array)) { return null; } foreach ($array as $key => $val) { - $sa[$key] = $val[$sortby]; + $sa[$key] = $val[$sortBy]; } if ($order === 'asc') {