Puedes lograrlo con [`usort()`][1], [`strcmp()`][2] y [`explode()`][3]. Por ejemplo: $array=["ABC-105","BGT-103","ZXS-110","XYZ-101","IYT-104"] usort($array, function ($a, $b) { return strcmp(explode("-", $a)[1], explode("-", $b)[1]); }); # Sólo para prueba ... var_dump($array); Salida: array(5) { [0]=> string(7) "XYZ-101" [1]=> string(7) "BGT-103" [2]=> string(7) "IYT-104" [3]=> string(7) "ABC-105" [4]=> string(7) "ZXS-110" } [1]: https://www.php.net/manual/es/function.usort.php [2]: https://www.php.net/manual/es/function.strcmp.php [3]: https://www.php.net/manual/es/function.explode.php