The dependence of electrical resistivity on short-range order