Reorders code