CtGetSortedLinks (str,int)