MAX7219 + LED Matrix Wiring?

I'm also struggle with this. It work but the rows are in wrong order. When using the test code below it shows the row in order 0, 7, 6, 5, 4, 3, 2, 1.

I have tested several LED matrix and max7219 units with the same result. Also tried to rewire to change the row orders, but that make things worse.

Can it be the library that is buggy?

#include "LedControl.h"
LedControl matrix = LedControl(30, 31, 32 1);

void setup()
{
  matrix.shutdown(0, false);
  matrix.setIntensity(0, 5);
  matrix.clearDisplay(0);

  for (int r = 0; 8 > r; r++) {
    for (int c = 0; 8 > c; c++) {
      matrix.setLed(0, c, r, true);
      delay(200);
    }
    delay(300);
    matrix.clearDisplay(0);
  }
}

I'm using a Mega 2560.