I need to focus on this again, but not for now, to revisit. But the sort filter run
string orders tiddlers with special characters correctly allowing tiddlers to starting with such special characters to appear at the top or bottom, before or after numbered prefixes and alphanumeric.
- As I said we could first separate titles as beginning with a special character, alpha or numeric we could get the result I, and I believe the OT is asking for. That is we divide the list and “subsort” as desired.
- unfortunately there is devils in the details. I have 98% of the solution then found it had limitations.
- I was aiming for something similar to
- Using the string approach for special characters
- Alphanumeric for alpha+
- Number for leading integers?
By the way we have removed the “stop words” in a solution before, “A”, “An”, and “The” you mention.
I was mistaken thinking there was an easy solution already available, I am confident there is a work around but we do need easier solutions in this space. However this area is driven by diverse preferences, potential complexity and many almost solutions.
Yes, my thought is as I mentioned the reverse of the charcode operator may assist here, given a character return the charcode number. We can then leverage the order of different groups (in the character table) according to the starting character.
- This should be easy and is possibly already available to JavaScript.
- Actualy when looking for charcode in the core I noticed some of the encode/decode operators may allow use to do this. Needs more research.
- Perhaps we write our own encodeASCII or similar then we can access the natural order where needed, or classify a title based on its first character.