Sorting uncreated links by the amount of links

The uncreated links list is stored in the metadataCache as unresolvedLinks. So listed belows are two approaches dealing with this list of links to the uncreated notes. Note that the main key of that list is the note holding the uncreated note/link, so to get what you want one do need to switch it around.

The first links the uncreated note with the origin of the link, and the same is repeated in a slightly different context in the other post. To get just the count you could change the line towards the end which handles the print out to become:

   .map(item => [dv.fileLink(item[0]), item[1].length])
2 Likes