The Zohar, Chapter “VeYechi (And Jacob Lived),” Item 696: “Dan shall judge his people, as one of the tribes of Israel.” Dan, as it is written, is the last of all the camps, the left thigh, Hod. He walks last because Judah and Reuben journey, the Levites and the ark set up banners, and the banner of Ephraim journeys to the west. The right thigh journeys according to the order that the right thigh comes before the left thigh, Dan. Thus, Dan journeys last.
In this form The Zohar tells us of the formation of the “camp of Israel in the desert,” meaning the formation of the soul in its development at the 0-1-2 levels of desire (Galgalta Eynaim), attainment of the qualities of Bina, and how all 12 parts that make up the system of the collective soul (called the “12 tribes of Israel”) need to advance along the degrees in “three lines.”
In the soul there are such notions as “banners,” separate groups or “camps,” “women,” “elderly,” and “children,” which go in the front or in the back. These are all various desires within a person, thus organized and interconnected and thus actualizing their correction: moving from one “camp” to another, from one spiritual degree to the next. And every time there is a particular order which every moving “camp” must follow (“hands,” feet,” “head,” torso,” “extremities,” or lines and Sefirot), and how they have to connect between themselves so as to advance.
This is why the Torah talks about what’s happening in the camps, all the various problems and events there, that is, about the revelation of new lows in the ego of the common soul and how they correct the ego and advance thereby. That is what the story is all about.
From the 2nd part of the Daily Kabbalah Lesson 10/11/10, The Zohar