Competing orders and the resistivity curves of cuprate superconductors