Reorder environment d