Check these settings.
This is what works for me on my Ordbot Hadron with Z switch at the bottom, X at the left side and Y at the back.
So, that means that an All Home will send the tray fully away from you, the head fully to the left and Z all the way down.
I hope that helps.
// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR -1
#define Y_HOME_DIR 1 // set to 1 for Y switch at rear
#define Z_HOME_DIR -1