sort navigation links and update links