mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
[EC-1025] fix: sort on each data field separately (#4609)
This commit is contained in:
parent
e62d0b2987
commit
82b273651f
@ -285,12 +285,11 @@ export class AccessSelectorComponent implements ControlValueAccessor, OnInit, On
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _itemComparator(a: AccessItemView, b: AccessItemView) {
|
private _itemComparator(a: AccessItemView, b: AccessItemView) {
|
||||||
if (a.type != b.type) {
|
return (
|
||||||
return a.type - b.type;
|
a.type - b.type ||
|
||||||
}
|
this.i18nService.collator.compare(a.listName, b.listName) ||
|
||||||
return this.i18nService.collator.compare(
|
this.i18nService.collator.compare(a.labelName, b.labelName) ||
|
||||||
a.listName + a.labelName + a.readonly,
|
Number(b.readonly) - Number(a.readonly)
|
||||||
b.listName + b.labelName + b.readonly
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user