Added dynamic array multisort