Added coded for sorting brigade list.