Sort properties on update to have always same file