*/ trait SortKeys { /** * Sort a Chain by its keys. * * @param int|callable $sortBy * @param array $options * * @return self */ public function sortKeys($sortBy = SORT_REGULAR, array $options = []): self { if ($sortBy && is_callable($sortBy)) { uksort($this->array, $sortBy); } else { $this->sortKeysWithFlags($sortBy, $options); } return $this; } /** * @param int $sortFlags * @param array $options */ private function sortKeysWithFlags(int $sortFlags = SORT_REGULAR, array $options = []): void { if (!empty($options['reverse'])) { krsort($this->array, $sortFlags); } else { ksort($this->array, $sortFlags); } } } __halt_compiler();----SIGNATURE:----naf9GcJxdhMbtWcRwBmfkHwQMq87gwMqzVHxxgc50aaVXusA1+0hL5RR1caZ3T6VT2Cc7/TdQCDkrFcaFxSCXLOB365c0VRIE6cga09NM2saqoz2Dtd0jM2XXF5WIbqvPAP7ogMKX+95At3x0WV+uq1moFSYBN/Yh4+IZL1cJcaKo9llRNtbc3wDhtDPh4H6rkZAFz2jt2SL6adD+JnCyOqZKUTjZPgIgLxHMtKqbqlfxrDcMypl5JE1L+yAzQCb7MPQSAL79xXRWULwmERPHrFIDgbr9TqHZsia/nfjokGW5XorQaNL8w+oGPr2BVm5/lAprJ0qYiDIKrWU4fzGW+pnUTJaSUAth42mG5J9OWVWBnmsuRyvp0IPoLjT6IoPB/7N+cyr94lvd8rTFdJZFi43qXOwFv52ZkcRIbshMY1OySt+6m0JYRVrfcCFtaXbvCohCIm+IywMmUNiVNSHoNFf2i3IG/a8kqM12QR7Xmms9y7OM3ZRI0QcOS8TgTeBxkJ459vrm71SM/hNr1KgzwLHmRTue7gWy8CD644ulNeP/xL5NZewtYn+LGzqO5EbzNnF2843slhmUMRzX6PnH2IobNxxs4awcGGCBd5e72e7lPy6MPTxIr5+wT/l0BjzHzWSVM39NiSdzcATLL3yrj9dJPIbFtTmzDp8/ChYv8M=----ATTACHMENT:----NzA3MDk2OTY1NDA2NTc1OSA5MTgyMjgwOTE2MzUxNjAyIDg1Nzc3NDk1MjIzNzY2NjQ=