$array = array(
'list1 - 1',
'list7 - 1',
'list5 - 2',
'list3 - 1'
);
I need sort to this array numerically. The function should check the value after the equal sign for sorting.
result:
list1 - 1
list7 - 1
list3 - 1
list5 - 2
In the above result, the order is not changed either alphabetically or numerically until `list[5]`. How do I do this?