Fixed soting using array_multisort