sorting code

Hi Sir, 
This is the modified code.