sort the code