-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In edit_list_request page, sort scenario on titles #1659
base: main
Are you sure you want to change the base?
In edit_list_request page, sort scenario on titles #1659
Conversation
I have an objection.
|
Would it make sense to have a configuration parameter to control this behavior, thus responding to the need of european users, while leaving the freedom for others to keep the current behavior? |
However, sorting by character code may not necessarily be convenient for many European users either. IMO the "à" seems placed after the "z". |
That's just why that English and French share many of the same word roots, so the sort order is often the same. In other words, your language is too specific. Check by changing the language setting to Russian, Finnish, Magyar and so on. If we want to allow users to choose the order they prefer, I think, we need the way something else. |
Using Unicode Collate algorthm may solve the problem better for European and other languages (Still only sorting by character code is possible for Kanji, though). |
Thanks for suggesting this alternative. It seems Unicode::Collate is installed on my server. Does it come with Perl? Using this module for sorting would however require to write a custom sort subroutine to be used in TT2 templates... |
Currently Unicode::Collate is not a core module of Perl, but we may be able to add it to our It's midnight here. See you in the next week! |
The following opinion is separate from the pros and cons of this PR and may be continued later in a different location. Currently, users need to distinguish slightly different titles in order to find the appropriate scenario. Sorting would make it easier to distinguish between similar titles by placing them in close proximity to each other. In other words, the fundamental problem may be that there are too many scenarios for each function. For example, for the send scenario, it would be much easier to understand if several conditions were selected individually, such as:
All possible combinations of these conditions are made into separate scenarios, which means that we have to prepare many scenarios with similar titles. |
Thank you for summarizing the problem. |
@salaun-urennes1 , I was in the process of doing exactly the same thing (and had given up because I got fed up with the complexity)! |
I convert this PR to Draft once. Let's continue discuttion. |
Here are further details about our send scenario reorganization:
|
Here is the list of scenarios we ignore :
|
Currently scenario in edit_list_request pages are sorted on scenario filenames.
As reported in https://lists.sympa.community/msg/fr/2023-04/1TZ5Q-_qRxSqJkG0zscNjQ, it would make sense to sort them on scenario titles.
This PR does the sort in TT2 file