Keep line order regarding indexes