Text line sort extension beaks hyperlinks in Notes?

I’ve just started using the ‘line sort extension’ in Apple Notes to sort lines of text which had hyperlinks in portions of the text. I’d been using it for a while when I realised that the newly sorted lines (the sort was correct) had hyperlinks on the entire line of the text. All links for every line had been as per the link found in the first line.
Any ideas folks?