Alright I tried searching this up and couldn't find anything on it, but I think I figured out how the ranking system inside the clan wars works.
In my clan, I am almost completely maxed out with my Town Hall 7 base. In our current war I am ranked #10, behind numerous members who are TH8 but with significantly weaker bases. My base is the top of all the other TH7's in my clan, but every TH8 is ranked higher than me. And then there is the one guy who rushed to TH9 and is ranked #1 for some unknown (till now) reason.
I did a little comparisons between all the bases in my clan, and I think I came to the conclusion on how the ranking system works: It's all about the walls!
Yes your walls, and here is how it works.
1) The more walls you have, the higher you are ranked - This is why all the TH8 people are ranked higher than me even with weaker bases and lvl 5 walls. This is the first criteria for your rank.
2) Second criteria is the level of your walls compared to the level of the walls of members who have the same amount of walls as you.
So let's say you have majority of lvl 8 walls and some lvl 7 walls on your TH8 base and the next member has majority of lvl 7 walls and a few lvl 8. Since your walls are the higher lvl, you will be ranked higher than the person with mostly lvl 7 walls no matter how much stronger their base is compared to yours.
Now let's say you have a TH8 base with ALL lvl 8 walls, and someone in your clan gemmed to TH 10 right at the start of the game and has ALL lvl 4 walls. Even though your base is stronger, with higher level walls, their base will be ranked higher than yours.
I am almost positive these two specifications, in this order, are what make up your ranking in wars. From what I have seen in other clans and my own, it makes sense.




