Sort Note Lines Command #8
sottey
started this conversation in
Command Palette Scripts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Name: Sort Note (asc)
Attributes:
Code:
Notes:
noteContent.split('<p>').sort(Intl.Collator().compare).join('<p>');
noteContent.split('<p>').sort(Intl.Collator().compare).reverse().join('<p>');
Beta Was this translation helpful? Give feedback.
All reactions