Add a  sort function to resort the pitch types