Use same lock values as mobile clients
[ProtonMail-WebClient.git] / packages / shared / lib / helpers / contactGroups.ts
blob98ee02a3f34d9c81b7974cdc27446ac921f9a326
1 import type { ContactGroup } from '../interfaces/contacts';
3 export const orderContactGroups = (contactGroups: ContactGroup[]) => {
4     return [...contactGroups].sort((contactGroupA, contactGroupB) =>
5         contactGroupA.Name.localeCompare(contactGroupB.Name)
6     );
7 };