Array do not need sorted, as it used Map.