collapse comments of links, optimize getting rank of Link & Comment