fixed error in multisort