JEMBOT MAWOT Bypass Shell
<?php
/**
* Mollie https://www.mollie.nl
*
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*/
namespace Mollie\Utility;
if (!defined('_PS_VERSION_')) {
exit;
}
class AssortUtility
{
/**
* 2D array sort by key.
*
* @param mixed $array
* @param mixed $key
*
* @since 3.3.0
*/
public static function aasort(&$array, $key)
{
$sorter = [];
$ret = [];
reset($array);
foreach ($array as $ii => $va) {
$sorter[$ii] = $va[$key];
}
asort($sorter);
foreach ($sorter as $ii => $va) {
$ret[$ii] = $array[$ii];
}
$array = $ret;
}
}
xxxxx1.0, XXX xxxx