here missing and sorting are the same. I have edited it.