I changed the line 3603 in includes/menu.inc as suggested by Amal Murali. Previously the line had
array_multisort($sort, SORT_NUMERIC, $menu, SORT_STRING);
I changed it to
array_multisort($sort, SORT_NUMERIC, $menu, SORT_ASC);
This solved the problem
There seems problem with parameters in array_multisort()
function. The documentation gives the syntax of array_multisort()
as
array_multisort(array1,sorting order,sorting type,array2,sorting order...)
Where, array1
and array2
are array to be sorted, sorting order
is SORT_ASC
or SORT_DESC
and sorting type
is type of variable to use to be sorted. Sorting order and sorting type is optional.