When playing team games players tend to send units to their team castles for defence.
It often ends that two stacks are defending the city - owner's stack and mate's stack.
The problem here is that owners support units - pegas heroes etc... are fighting before mates infantry.
The solution would be to split units for grunts and support units.
Lets do it like this: in defence order window let there be a black line after first 4 lines.
It will mean that first 24 units are grunts and all other are support units.
The defence order would go like this.
1. owner's grunts
2. mate's grunts
3. owners' support
4. mate's support