Change encoding order