EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10241


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

RE: [EP-tech] Alphabetically sort names with special characters


CAUTION: This e-mail originated outside the University of Southampton.

Andrew

That is superb, thank you. I was surprised that it turned out to be such an adventure and extremely glad that I did not try to hack it alone. It would have taken me weeks!! Thank you for your hard work and support. I really appreciate it. I'll look for the next message and incorporate the solution into my repo as soon as I can!

Best wishes

Will

-----Original Message-----
From: Andrew M <eprints-tech@unitedgames.co.uk>
Sent: 10 September 2025 19:40
To: eprints-tech@ecs.soton.ac.uk
Cc: Will Hughes <w.p.hughes@reading.ac.uk>
Subject: Re: [EP-tech] Alphabetically sort names with special characters


Okay - here's my research findings in a github gist:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fajmetz%2F33ad5809326cbd979998297322e2a41d&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949087031%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=72nwWAyKwIeKoxUrEsHymIzDMHe%2FCQXCn7FcGIdOios%3D&reserved=0

To my surprise - we could throw Unicode::Collate out of the window, and simply use the Text::Unidecode ( https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmetacpan.org%2Fpod%2FText%3A%3AUnidecode&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949103872%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=XawwiZS1DamwQMFsRcs1ycgjf%2B%2BKXICi4dUSci%2BsYGQ%3D&reserved=0 ) translation of odd characters back to English as we sort.
How did I learn of it?
EPrints' David had already used it in some of the unidecode groupings in View.pm - so I was borrowed his approach, ^_^.

Surely I'm still missing something, and there's a way to declare a unidecoded sort to the bottom of the list, without hacking core...?

I've got it working completely for the time being...
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2F18.232.191.141%2Fview%2Fyear%2F2005.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949117877%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=QNAnYxuon%2Fb87%2Fe23QDUFCFtdZFa78lfqSu1%2FDZhFm8%3D&reserved=0
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2F18.232.191.141%2Fview%2Fyear%2F2001.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949131643%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=s64yXRkWw50DJfzBgz3fgJZIGjWcLLaCWjeuWoK385M%3D&reserved=0
...etc...
...and it's an absolute hack of View.pm in Core EPrints, that the EPrints team would be shocked to see, and likely know of a better way to achieve the same thing.

But it works for the time being.
so I'll tidy it up and share it in the next message, and then likely use it as the basis for raising an EPrints issue, so the team can discuss better approaches and refinements.

Yours,
Andrew.


Quoting Will Hughes <w.p.hughes@reading.ac.uk>:

> Excellent progress! 😊
>
>
> -----Original Message-----
> From: Andrew M <eprints-tech@unitedgames.co.uk>
> Sent: 10 September 2025 16:03
> To: eprints-tech@ecs.soton.ac.uk
> Cc: Will Hughes <w.p.hughes@reading.ac.uk>
> Subject: Re: [EP-tech] Alphabetically sort names with special
> characters
>
>
> Okay - I have got it working on the Item Type and No Grouping "Group
> By" options, and am gonna see if I can get the same on creators next,
> and its list of letters at the top of the page.
>
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2F18.232.191.141%2Fview%2Fyear%2F2005.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949145970%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=mF9teW0AP04EHPLKErehtY%2FMhdB7caXMlGvJ2UHT6dc%3D&reserved=0
>
>
>
> Quoting Andrew M <eprints-tech@unitedgames.co.uk>:
>
>> In addition to this problem on your site...
>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Farcomabstracts.com%2Fview%2Fyear%2F2025.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949160900%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=15ZiGcvXd2WRqGcDTeTQjcJVv%2BQJuyAiHlXXFjSjekc%3D&reserved=0
>>
>> It's also on my default 3.4.5...
>> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2F18.232.191.141%2Fview%2Fyear%2F2005.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949175156%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=es7SAlGCS3ksP2eOkbWjIqRmVCPrz3XZgxm0f1cT6H0%3D&reserved=0
>>
>> It's also on London Met:
>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.londonmet.ac.uk%2Fview%2Fyear%2F2025.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949190701%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=XnXzV6bWxABZFsxcRUwWjCrqGWMdGfpED%2BAUKG4PRG4%3D&reserved=0
>>
>> It's also on Greenwich:
>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgala.gre.ac.uk%2Fview%2Fyear%2F2025.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949204250%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=H4cVJe5aWFjnDa%2F5fp96127vlcTZ%2FDJzLf6jJrLeQt4%3D&reserved=0
>>
>> So it doesn't seem to be due to your misconfiguration.
>>
>> Still exploring the problem, learning about how browse_views are generated.
>>
>>
>> Quoting Andrew M <eprints-tech@unitedgames.co.uk>:
>>
>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>
>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>
>>> You should simply be able to use the sort_values method when the
>>> list is presented.
>>>
>>> So I'm assuming off the top of my head, it's gonna be a layout
>>> issue, in one of the xml documents, and that's it.
>>>
>>> Whether that is ACTUALLY the case or not, will require me to see the
>>> problem you're seeing on my own EPrints, fix it on my own EPrints,
>>> and then share what the fix was.
>>>
>>> So let's first look at an example of where the problem is occurring.
>>> You said it was in the second level of browse views.
>>> Fantastic!
>>> I've found an example here:
>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Farcomabstracts.com%2Fview%2Fyear%2F2025.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949217792%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=gLGtLKqY9525KlI6Ft6z2LeRBH2gzJ8LtRTAqXTq3xY%3D&reserved=0
>>>
>>> Okay.
>>> I will replicate the same issue on my EPrints, and then look for a
>>> fix, and write again shortly.
>>>
>>> I suspect the layout xml is just cycling through the eprints and
>>> displaying them, without first sorting the eprints by author using
>>> sort_values (
>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FAPI%3AEPrints%2FMetaField%23sort_values&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949231545%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=712Iz2a%2B0jy6nxNnLfWa0FMWV%2F%2F4Ca2U3yxbjLsTo18%3D&reserved=0 )...and
>>> we'll soon see if that's the case.
>>>
>>> That said, I have perhaps not read your email fully enough.
>>> Are you saying, you think it's a matter of what you have, or have
>>> not, copied over into your custom browse view? Do you have a copy of
>>> your custom browse view to share?
>>>
>>> I've just read up about gists here:
>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.github.com%2Fen%2Fget-started%2Fwriting-on-github%2Fediting-and&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949245454%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=6r1FKZhgj8Uw1G4UF2DCDT3cDe1wgvfYv276x9jlmIQ%3D&reserved=0
>>> - sharing-content-with-gists/creating-gists
>>> ...and these seem a good way to share snippets of code as needed for
>>> our discussions.
>>>
>>> Yours,
>>> Andrew.
>>>
>>>
>>>
>>>
>>>
>>> Quoting Will Hughes <w.p.hughes@reading.ac.uk>:
>>>
>>>> Andrew
>>>>
>>>> Oops, type in the email: "bewildered by you..." should have been
>>>> "bewildered, but you...". Apologies for that!
>>>>
>>>> OK, I am beginning to understand but I still struggle to really see
>>>> through this. In the default views.pl, which provides the sorting I
>>>> would expect, I see this:
>>>> {
>>>>       id => "creators",
>>>>       allow_null => 0,
>>>>       hideempty => 1,
>>>>       menus => [
>>>>           {
>>>>               fields => [ "creators_name" ],
>>>>               new_column_at => [1, 1],
>>>>               mode => "sections",
>>>>               open_first_section => 1,
>>>>               group_range_function =>
>>>> "EPrints::Update::Views::cluster_ranges_30",
>>>>               grouping_function => "group_by_a_to_z_hideempty",
>>>>           },
>>>>       ],
>>>>       order => "-date/title",
>>>>       variations => [
>>>>           "type",
>>>>           "DEFAULT",
>>>>       ],
>>>>   },
>>>>
>>>> But, in my custom browsing, by document type, I have this:
>>>>
>>>> {
>>>>  id=>"doctype", # Browse by type of document  menus =>
>>>>     [
>>>>     {
>>>>             fields => [ "type" ],
>>>>     },
>>>>     ],
>>>>   order => "creators_name/date",
>>>>             variations => [
>>>>                     "creators_name;first_letter",
>>>>                     "type",
>>>>                     "DEFAULT" ],
>>>> };
>>>>
>>>> So, the problem comes when my results are at a second level, rather
>>>> than at a primary level of browse results. I struggle to figure out
>>>> which part of the code I should be copying into my custom browse view.
>>>>
>>>> Best wishes
>>>>
>>>> Will
>>>>
>>>> -----Original Message-----
>>>> From: Will Hughes
>>>> Sent: 10 September 2025 08:34
>>>> To: eprints-tech@unitedgames.co.uk
>>>> Subject: RE: [EP-tech] Alphabetically sort names with special
>>>> characters
>>>>
>>>> Andrew
>>>>
>>>> Thank you so much for digging around and exploring this. I have
>>>> been bewildered by you are helping me to make sense of it. Your
>>>> question about where I come across the problem made me think. It is
>>>> interesting as mostly happens in Browse views, but now I see that
>>>> sometimes the sort is as I desire, and sometimes not - so maybe it
>>>> is merely a question of how the browse view is configured:
>>>>
>>>> * Browse by author gives my pages (and the lists below them)
>>>> "correctly" sorted, like this:
>>>> 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
>>>>
>>>> * Browse by year gives me pages (and lists below them) sorted like this:
>>>> 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 | Ç | Ö | Ş
>>>>
>>>> * I also have a custom Browse by Document Type, which sorts like this:
>>>> 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 | Ç | Ó | Ö | Š
>>>>
>>>> So, I am going to dig around in the customised views.pl files and
>>>> compare them to vanilla versions - it may simply be a question of
>>>> how the order is defined.
>>>>
>>>> Best wishes
>>>>
>>>> Will
>>>>
>>>> -----Original Message-----
>>>> From: eprints-tech-request@ecs.soton.ac.uk
>>>> <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Andrew M
>>>> Sent: 10 September 2025 08:06
>>>> To: eprints-tech@ecs.soton.ac.uk
>>>> Subject: Re: [EP-tech] Alphabetically sort names with special
>>>> characters
>>>>
>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>
>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>
>>>> Yes. It seems there is support for it already in MetaFields via the
>>>> sort_values method.
>>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FAPI%3AEPrints%2FMetaField%23sort_values&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949259087%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=cNAUDy0laDiki16bFkYPw3fMkkujbdR9JkLkB11LF4k%3D&reserved=0
>>>>
>>>> =======
>>>>
>>>> =pod
>>>>
>>>> =item $out_list = $field->sort_values( $in_list, $langid )
>>>>
>>>> Sorts the in_list into order, based on the "order values" of the
>>>> values in the in_list. Assumes that the values are not a list of
>>>> multiple values. [ [], [], [] ], but rather a list of single values.
>>>>
>>>> =cut
>>>>
>>>> =======
>>>>
>>>> Yours,
>>>> Andrew.
>>>>
>>>>
>>>> Quoting Andrew M <eprints-tech@unitedgames.co.uk>:
>>>>
>>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>>
>>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>>
>>>>> Quoting Andrew M <eprints-tech@unitedgames.co.uk>:
>>>>>
>>>>> Since the script was getting butchered in email form, I've thrown
>>>>> it online here:
>>>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.andrewjamesmehta.com%2Ffiles%2Feprints%2FUnicodeSortExample&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949274579%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=C4aws4KpTa1ylJIvHv0RtL2G1eUjyJ4c9xbKTafToSw%3D&reserved=0.
>>>>> p
>>>>> m
>>>>>
>>>>> However, the main part was:
>>>>>
>>>>> sub unicode_sort {
>>>>>   my  $self   =   shift;
>>>>>   my  @configuration_to_ignore_case_and_diacritics    =   (level => 1);
>>>>>
>>>>>   return
>>>>> Unicode::Collate->new(@configuration_to_ignore_case_and_diacritics
>>>>> )
>>>>> ->s
>>>>> ort(@ARG);
>>>>> }
>>>>>
>>>>> As written about in the Perl Unicode cookbook:
>>>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fperldoc.perl.org%2Fperlunicook%23%25E2%2584%259E-36%3A-Case-and-accent&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949291373%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=auw6iSi0%2FIbwXeia9a6sdfRQiDV0s1EizmQNr%2FO7Eic%3D&reserved=0
>>>>> -
>>>>> ins
>>>>> ensitive-Unicode-sort
>>>>>
>>>>> This is Perl, and not EPrints of course, so the next stage is to
>>>>> figure out where such improved sorts need to be used in EPrints,
>>>>> or if there is already an option in EPrints for them.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>>>
>>>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>>>
>>>>>> There was no need for the "our" before $a and $b in that code example.
>>>>>> Apologies. Was messing around with different things and left that in.
>>>>>>
>>>>>>
>>>>>> Quoting Andrew M <eprints-tech@unitedgames.co.uk>:
>>>>>>
>>>>>>> Was intrigued by this, and had a moment of spare time, so wrote
>>>>>>> a short script, that attempts three different sorts:
>>>>>>>
>>>>>>> Default sort,
>>>>>>>
>>>>>>> Default unicode case folding case-insensitive sort,
>>>>>>>
>>>>>>> ...and since the second made no difference, I hit the online
>>>>>>> cookbook...
>>>>>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fperldoc.perl.org%2Fperlunicook%23%25E2%2584%259E-36%3A-Case-and-acce&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C704689b4fc024880ab2208ddf0ae6137%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638931353949307380%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=4fzZkTO1Sa0bO7n9AKYcHBAjTHU3UZUjEaaOVrOlWKI%3D&reserved=0
>>>>>>> n t-i nsensitive-Unicode-sort and learned about the default
>>>>>>> unicode case-and-accent-insensitive sort.
>>>>>>>
>>>>>>> So now we know how to do the correct kind of sort in
>>>>>>> Perl....next we'd need to know where in the EPrints codebase to apply the fix.
>>>>>>>
>>>>>>> Where are you seeing the wrong order appearing? In what context
>>>>>>> do you wish for the order to be changed in?
>>>>>>>
>>>>>>> Of course there may also be a simple EPrints option that
>>>>>>> switches to more correct ordering, so I probably should have
>>>>>>> checked the EPrints wiki before looking up the Perl solution.
>>>>>>>
>>>>>>> Attempting to copy and paste the short experimental script I
>>>>>>> just wrote - hope it doesn't get butchered in email form:
>>>>>>>
>>>>>>> ====================
>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Quoting Will Hughes <w.p.hughes@reading.ac.uk>:
>>>>>>>
>>>>>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>>>>> CAUTION: This e-mail originated outside the University of Southampton.
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> Hopefully a quick question with an easy answer:
>>>>>>>>
>>>>>>>> How do we get alphabetic sorting to list accented characters at
>>>>>>>> an appropriate point in an alphabetic list? The default
>>>>>>>> behaviour seems to use UniCode values or something, as accented
>>>>>>>> characters appear at the end of the alphabet.
>>>>>>>>
>>>>>>>> For example, when I see this kind of sequence from Eprints:
>>>>>>>>
>>>>>>>>
>>>>>>>> *   Church, B
>>>>>>>> *   Lee, K
>>>>>>>> *   Ågren, R
>>>>>>>> *   Çınar, D
>>>>>>>>
>>>>>>>> I feel that it should (probably) be:
>>>>>>>>
>>>>>>>>
>>>>>>>> *   Ågren, R
>>>>>>>> *   Church, B
>>>>>>>> *   Çınar, D
>>>>>>>> *   Lee, K
>>>>>>>>
>>>>>>>> Is there a simple setting to implement sorting in a way that
>>>>>>>> respects accented characters? (and will these characters
>>>>>>>> reproduce accurately after emailing! Image attached just in
>>>>>>>> case)
>>>>>>>>
>>>>>>>> Best wishes
>>>>>>>>
>>>>>>>> Will
>>>>>>>>
>>>>>>>> Will Hughes
>>>>>>>> Emeritus Professor of Construction Management and Economics
>>>>>>>> School of the Built Environment University of Reading, PO Box
>>>>>>>> 219, Whiteknights Reading, RG6 6DF, UK