How can I order an array from this:
$unordered_array = ['11196311|3','17699636|13','11196111|0','156875|2','17699679|6','11196237|7','3464760|10'];
To this
$ordered_array = ['11196111', '156875', '11196311', '17699679','11196237','3464760', '17699636'];
The number after the "|" defines the position, and the array needs to be ordered from lower to higher, and remove the position number in the final array.
usort(). The comparison function extracts the number after|and compares them.array_map.