Rows reordered.
Guarding against out of range exception.