You've already forked simple-icons
mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-07-12 22:21:23 +02:00
Use getIconSlug()
to keep consistent (#12500)
This commit is contained in:
@ -10,8 +10,8 @@ import path from 'node:path';
|
||||
import {
|
||||
collator,
|
||||
getDirnameFromImportMeta,
|
||||
getIconSlug,
|
||||
getIconsDataPath,
|
||||
titleToSlug,
|
||||
} from '../sdk.mjs';
|
||||
|
||||
const __dirname = getDirnameFromImportMeta(import.meta.url);
|
||||
@ -78,9 +78,6 @@ export const getSpdxLicenseIds = async (
|
||||
*/
|
||||
export const sortIconsCompare = (a, b) => {
|
||||
return a.title === b.title
|
||||
? collator.compare(
|
||||
a.slug ?? titleToSlug(a.title),
|
||||
b.slug ?? titleToSlug(b.title),
|
||||
)
|
||||
? collator.compare(getIconSlug(a), getIconSlug(b))
|
||||
: collator.compare(a.title, b.title);
|
||||
};
|
||||
|
Reference in New Issue
Block a user