Sort changes in correct order