Jump to content
tavor

Tag name character sort order help

Recommended Posts

I'm trying to sort all my When tags so that when I enter a tag starting with '!', I get the following sort in the dropdown list:

  • !!Daily
  • !1-Now
  • !2-Next
  • !3-Soon
  • !4-Later
  • !5-Someday
  • !6-Waiting
  • !9-Completed
  • !Recur
  • !z_Annually
  • !z_Monthly
  • !z_Quarterly
  • !z_Weekly

You'll see that I used 'z' to get the periodicity tags to the bottom of the sort. Is there a special character that would sort below letters? I.e., a character that I could replace 'z' with and still have my desired sort order?

Share this post


Link to post
22 minutes ago, tavor said:

You'll see that I used 'z' to get the periodicity tags to the bottom of the sort. Is there a special character that would sort below letters? I.e., a character that I could replace 'z' with and still have my desired sort order?

Ω 

I am the Alpha and the Omega, the first and the last, the beginning and the end.

  • Like 1

Share this post


Link to post
7 minutes ago, DTLow said:

Ω 

I am the Alpha and the Omega, the first and the last, the beginning and the end.

That works for the sort, though unless there is a more convenient shortcut than ALT+234 it's not great for quick entry of a tag. I use the dropdown list as a means of narrowing the tag list, but I typically type characters until the list is winnowed down to one tag. So in this case, I'd have to type the theta character using the above shortcut, which is too slow.

Share this post


Link to post
58 minutes ago, tavor said:

unless there is a more convenient shortcut than ALT+234 it's not great for quick entry

I use a keyboard shortcut expander (it's a builtin feature on Macs)
so I just type   o,,   and it's converted to Ω 

Share this post


Link to post
2 hours ago, tavor said:

I'm trying to sort all my When tags so that when I enter a tag starting with '!', I get the following sort in the dropdown list:

  • !!Daily
  • !1-Now
  • !2-Next
  • !3-Soon
  • !4-Later
  • !5-Someday
  • !6-Waiting
  • !9-Completed
  • !Recur
  • !z_Annually
  • !z_Monthly
  • !z_Quarterly
  • !z_Weekly

You'll see that I used 'z' to get the periodicity tags to the bottom of the sort. Is there a special character that would sort below letters? I.e., a character that I could replace 'z' with and still have my desired sort order?

May not be quite what you want, but ! Recur will sort before !Annually.  The space makes the difference.

Share this post


Link to post
1 hour ago, csihilling said:

May not be quite what you want, but ! Recur will sort before !Annually.  The space makes the difference.

The space also sorts before special characters, so this would move ! Recur to the very top of the list of tags starting with !. 

I'd like to sort as above.

  • Like 1

Share this post


Link to post
4 minutes ago, tavor said:

The space also sorts before special characters, so this would move ! Recur to the very top of the list of tags starting with !. 

I'd like to sort as above.

Yeah, my bad, didn't test as I should have.  Oops.  :blush:

Share this post


Link to post

I'll add a caution that sorting of special (i.e., non-alphanumeric) may vary by Evernote platform.

  • Like 1

Share this post


Link to post
56 minutes ago, eric99 said:

{   |   }  ~     see http://www.asciitable.com/

 

 

 

I had already tried ~

That character sorts relatively high, and it will sort before a letter or number, so !~ will sort before !z

I'm looking for a (quick to type on standard keyboard) character that will sort AFTER letters.

It looks like the sort order Evernote uses in the tag dropdown field is different from the ASCII table numerical sequence.

Share this post


Link to post
1 hour ago, tavor said:

It looks like the sort order Evernote uses in the tag dropdown field is different from the ASCII table numerical sequence.

Sorting isn't always based on numerical order. See, e.g. https://en.wikipedia.org/wiki/Collation. Note that Evernote sorts tags in a case insensitive order ('a' and 'A' sort to the same slot, even though they have different numerical values).  Note also that Evernote uses UTF, not ASCII.

You may need to use trial-and-error to determine the special character that you seek, unless someone here has already solved it (I haven't).

  • Like 1

Share this post


Link to post

You're right, the sort order might be culture dependent, below an explanation how it is done in C# for example:

The sort order of strings depends on the culture you use.

StringComparer.CurrentCulture sorts the following 1-character strings as follows on my machine:

' -   ! " # $ % & (  ) * , . / : ; ? @ [
\ ] ^ _ ` { | } ~ +  < = > 0 1 2 3 4 5 6
7 8 9 a A b B c C d  D e E f F g G h H i
I j J k K l L m M n  N o O p P q Q r R s
S t T u U v V w W x  X y Y z Z

StringComparer.Ordinal sorts the same strings as follows:

  ! " # $ % & ' ( )  * + , - . / 0 1 2 3
4 5 6 7 8 9 : ; < =  > ? @ A B C D E F G
H I J K L M N O P Q  R S T U V W X Y Z [
\ ] ^ _ ` a b c d e  f g h i j k l m n o
p q r s t u v w x y  z { | } ~
  • Like 1

Share this post


Link to post

I am aware that this topic has been treated half a year ago, but I'm pretty much stuck on the same issue.

As the in the original question, I am treating some notebook as my todo list. As such, I want to file some entries to belong to a specific project.

However, I want this tag to be the last in the row.

Being a cross-platform user, I found the colon ( : ) to be treated after the numbers on the Mac, but it is sorted before the numbers in Windows. Is there some definite answer on which special character would go behind the numbers in Windows? I'm using the German localization now, it that matters.

It's starting to give me gray hair...

 

Best regards

Michael

Share this post


Link to post

What about this? I think could be useful to have a simple char to type which sorts after numbers and letters...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...