Brake controller and index sort corrections

made corrections for sorting brake info.