It could be done, i suppose (i get the impression that hardcoded stuff is just the module system, but hidden inside the .exe) but would require a bit of knowledge of obscure and annoying computational maths. The code involved could stretch out pretty far given that warband doesn't handle lists well.
...Unless (S)omebody points out that there's some kind of sorting operation hidden somewhere, and I'm an idiot.
...Unless (S)omebody points out that there's some kind of sorting operation hidden somewhere, and I'm an idiot.