Matrix Cells in Distance Order