Add code to sort navigation tabs