add code to sort branches list in session save date