Additions to sort faction info correctly