Closes #17372. Fix documentation for the ArrayHelper::multisort() (#17375)

This commit is contained in:
Alexander Kartavenko
2019-06-18 14:17:16 +03:00
committed by Alexander Makarov
parent 1c919a5ac5
commit 8fb5b35cc5
2 changed files with 4 additions and 3 deletions

View File

@@ -648,9 +648,9 @@ class BaseArrayHelper
throw new InvalidArgumentException('The length of $sortFlag parameter must be the same as that of $keys.');
}
$args = [];
foreach ($keys as $i => $key) {
foreach ($keys as $i => $k) {
$flag = $sortFlag[$i];
$args[] = static::getColumn($array, $key);
$args[] = static::getColumn($array, $k);
$args[] = $direction[$i];
$args[] = $flag;
}