I would like to sort an array like:
$k = array (
"2135p" => "toto",
"2137l" => "tosdgsto",
"2135p^2211i" => "sdf",
"2135p^2211i^2224o" => "sdf",
"2137l^2365c" => "sdff"
);
with this order -> "2137l", "2137l^2365c", "2135p", "2135p^2211i", "2135p^2211i^2224o"
krsort doesn’t do it
It’s for displaying inset comments ids
thanks
You will likely need to implement your own
uksort()implementation to get what you need.