Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
groups.sort(compareVia((group) => (attributesFor(group).name || '').toLowerCase()));
if (!selected && groups && groups.length > 0) {