bug 2291: sort branches and letter types