Requesting help in mapper

I have RGB Matric panel with connections

as

P1–> P6–>P2–>P5–>P3–>P4

and below is its actual matrix placements

P1 P2 P3
P6 P5 P4

Wwhich mapper i can use to be able to use these matrix as one display