Univention Bugzilla – Full Text Bug Listing |
Summary: | Use language sensitive sorting for tools.cmpObjects | ||
---|---|---|---|
Product: | UCS | Reporter: | Johannes Keiser <keiser> |
Component: | UMC (Generic) | Assignee: | Johannes Keiser <keiser> |
Status: | CLOSED FIXED | QA Contact: | Ole Schwiegert <schwiegert> |
Severity: | normal | ||
Priority: | P5 | Flags: | keiser:
Patch_Available+
|
Version: | UCS 4.3 | ||
Target Milestone: | UCS 4.3-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Feature Request | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Attachments: | Patch |
Description
Johannes Keiser
2018-06-14 17:12:55 CEST
Created attachment 9558 [details]
Patch
7248d8f Bug #47195: Use Intl.Collator in tools.cmpObjects ed0b3a5 Bug #47195: Debian changelog 4db5420 Bug #47195: YAML - add entry a93c6d1 Bug #47195: Merge branch 'jkeiser/47195__intl.collator_for_tools.cmpObjects' into 4.3-1 402ed0a Bug #47195: Remove trailing comma 5f3954f Bug #47195: YAML - update version Successful build Package: univention-web Version: 2.0.0-21A~4.3.0.201808221621 Advisory&Changelog: OK Package installed: OK Number sorting: OK (*) locale sorting: OK (**) (*) Works as desired (2<10), tested with the MultiSelect in Assign classes module (**) Works as described in Description. Tested via console tools = require('umc/tools') myA=[{'fn':'Anton'},{'fn':'Änton'},{'fn':'Susi'}] myF=tools.cmpObjects({'attribute': 'fn', 'collatorLocales':'sv'}) myA.sort(myF) -> Anton, Susi, Änton myF=tools.cmpObjects({'attribute': 'fn', 'collatorLocales':'de'}) myA.sort(myF) -> Anton, Änton, Susi |