A little tidying up
Missed a sort() here