MAX7221 shows LSB first

I am trying to count pulses from two inputs and show them on a 7-segment display with a MAX7221.
This the sketch:

/*
XY-pulsteller met de Max7219 / MAX7219
Aansluitingen
Arduino digital 2 -> Pulsen van de X-rotor, gebruik een pull/up weerstand
Arduino digital 3 -> Pulsen van de X-rotor, gebruik een pull/up weerstand
Arduino Digital 10 -> Pin 12 MAX7221 Load/CS
Arduino Digital 11 -> Pin 1 MAX7221 Din
Arduino Digital 13 -> Pin 13 MAX7221 CLK
*/
#include <SPI.h>
const int slaveSelect = 10; // Selecteer de MAX7219
const int numberOfDigits = 4; // Aantal getallen per rotor
const int maxCount = 9999;
int xcounter = 0;
int ycounter = 0;

void setup()
{
  // Initialiseer de MAX7219 via de SPI
  pinMode(slaveSelect, OUTPUT);
  SPI.begin();
  digitalWrite(slaveSelect, LOW);
  // De MAX7219 moet 7-segment data laten zien, zie verder de data sheet
  sendCommand(12, 1); // Normale mode (standaard is shutdown mode);
  sendCommand(15, 0); // Display test uit
  sendCommand(10, 8); // Gemiddelsde helderheid (van 0-15)
  sendCommand(11, 7); // 7221 digit scan limit command
  sendCommand(9, 255); // Decode command, standaard 7-segment displays
  digitalWrite(slaveSelect, HIGH);
  // Zet de Interrupts
  attachInterrupt(0, xCount, RISING);
  attachInterrupt(1, yCount, RISING);
}
void xCount() {
  xcounter++;
}
void yCount() {
  ycounter++;
}
// Functie om vier getallen op het 7-segment display te tonen
void displayNumber(int position, int number)
{
  for (int i = 0; i < numberOfDigits; i++)
  {
    byte character = number % 10; // Bepaal het meest rechtse getal
    // send digit number as command, first digit is command 1
    sendCommand(position - i, character);
    number = number / 10;
  }
}
void sendCommand(int command, int value)
{
  digitalWrite(slaveSelect, LOW); // Selecteer chip door pin 10 (slaveSelect) laag te zetten
  SPI.transfer(command); // Stuur het register
  SPI.transfer(value); // Stuur de data
  digitalWrite(slaveSelect, HIGH); // Geef de chip weer vrij
}

void loop()
{
  displayNumber(4, xcounter);
  if ( xcounter > maxCount)
  {
    xcounter = 0;
  }
  displayNumber(8, ycounter);
  if ( ycounter > maxCount)
  {
    ycounter = 0;
  }
}

In principle it works fine but the LSB is the most left number and the MSB is the most right number on both displays.
How can i reverse the order so that the LSB is the most rioght number?

Maybe this will help. SPISetBitOrder

SPIBitOrder sends MSB First or LSB First, it will not swap the displayed digits around.

Need to change the logic in here

 {
    byte character = number % 10; // Bepaal het meest rechtse getal
    // send digit number as command, first digit is command 1
    sendCommand(position - i, character);
    number = number / 10;
  }