Added order method w/ index checks.