hassanakbar4 / tractive-test

0 stars 0 forks source link

sort of references should disregard capitalization #295

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 9 years ago

component_Version 2 cli resolution_fixed type_defect | by arusso@amsl.com


In the references section, when sortrefs="yes", the sort should be alphabetical without regard for capitalization. (Apparent exception is that RFCs get listed first, rather than being incorporated into the sort; that's fine.)

This ticket is similar to #255 regarding the index. And perhaps related to the fix for #250.

This example is from an author-submitted XML file.

Order of references in output (v2.4.12) - not desired

   [OpenWSN]

   [OpenWSNETT]

   [IPSO]

   [CurrentCalculator]

   [doherty07channel]

   [tinka10decentralized]

   [watteyne09reliability]

   [TASA-PIMRC]

   [palattella12standardized]

Desired output

   [CurrentCalculator]

   [doherty07channel]

   [IPSO]

   [OpenWSN]

   [OpenWSNETT]

   [palattella12standardized]

   [TASA-PIMRC]

   [tinka10decentralized]

   [watteyne09reliability]

Issue migrated from trac:295 at 2021-10-20 18:20:03 +0500

hassanakbar4 commented 9 years ago

@{"email"=>"arusso@amsl.com", "name"=>nil, "username"=>nil} uploaded file draft-ietf-6tisch-tsch-06.original.xml (47.0 KiB)

hassanakbar4 commented 9 years ago

@{"email"=>"arusso@amsl.com", "name"=>nil, "username"=>nil} uploaded file draft-ietf-6tisch-tsch-06.original.txt (49.1 KiB)

hassanakbar4 commented 9 years ago

@{"email"=>"arusso@amsl.com", "name"=>nil, "username"=>nil} commented


Correction. Should have been with sortrefs="yes".

v2 output (not desired)

   [IPSO]

   [OpenWSN]

   [OpenWSNETT]

   [RFC2205] etc. [all RFC entries]  

   [TASA-PIMRC]

   [doherty07channel]

   [palattella12standardized]

   [tinka10decentralized]

   [watteyne09reliability]

Desired output as in the ticket (with RFCs incorporated).

(Disregard my note about "apparent exception".)

hassanakbar4 commented 9 years ago

@{"email"=>"arusso@amsl.com", "name"=>nil, "username"=>nil} _uploaded file draft-ietf-6tisch-tsch-06.with_sortrefs.xml (47.1 KiB)_

hassanakbar4 commented 9 years ago

@{"email"=>"arusso@amsl.com", "name"=>nil, "username"=>nil} _uploaded file draft-ietf-6tisch-tsch-06.with_sortrefs.txt (49.1 KiB)_

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Fixed in [1930]:

Made the reference sorting when using symrefs=yes and sortrefs=yes case-insensitive by mapping the reference keys to lowercase. This is correct for ASCII keys but not necessarily for non-ASCII keys, depending on locale. Fixes issue #295 (for now).

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` tofixed`

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed