Show links in proper order and add order index