fix order of an class attribute