TrueType hint auto sorting?

Would it be possible that the TrueType hints are sorted automatically? Often I have to delete and re-add a whole chain of hints when I have replaced one at the beginning of the chain, otherwis the effect of the following hints doesn’t change. I think this is because they executed in the wrong order.

They are supposed to be sorted automatically. Could you send me an example?