re-arrange order