Jump to content

Recommended Posts

Sorting titles of notes alphabetically ascending of the items below should show this (for instance a LibreOffice result):

Artist

LO24.2

LO7.6

Zyclone

 

Evernote shows this instead:

Artist

LO7.6

LO24.2

Zyclone

 

So the error only comes if numbers are integrated in the note title string.

Is this a known bug?

 

Link to comment
7 hours ago, Albrecht Kadauke said:

So the error only comes if numbers are integrated in the note title string.

It appears that EN recognises numbers within a text string, so 7.6 comes before 24.2. Change it to LO70.6 and it comes after LO24.2. EN being a bit too clever for it's own good?

  • Like 2
Link to comment

Sorting numbers within strings is a difficult task. We (as developers of an eCad system) often had requirements to sort strings like =A1+P7.1-K17:a and =A1+P24.2-K4:b. Internally you have to split the string to substrings containing only numbers and only other characters (simplyfied). Resulting table of substrings has to be sorted alphabetical in character columns and numerical in numerical columns.

By doing so, 7 comes before 24 . So EN works correct even in this sophisticated area 😉

But this is not true. If EN has to sort strings like "003-test+2" and "03-test+1" it fails:

  • first number 3 is identical.
  • Second string "-test" is identical.
  • Last numbers +2 and +1 should sort as +1..+2.

But the notes are listed as

  • 003-test+2
  • 03-test+1

At the end it sorts along its own rules - that are not documented anywhere... Best idea so solve this is to insert leading or trailing "0"s according to your sorting needs.

  • Thanks 1
Link to comment

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...