Fix `msort` to handle the empty list.