Solved more questions on sorting