5180 fichiers 38.5 Mo 0 téléchargements 202 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / api / avatar / AvatarEditorColorSorter.ts
AvatarEditorColorSorter.ts 399 o Télécharger le fichier
import { IPartColor } from '@octane/renderer';

export const AvatarEditorColorSorter = (a: IPartColor, b: IPartColor) => {
    const clubLevelA = !a ? -1 : a.clubLevel;
    const clubLevelB = !b ? -1 : b.clubLevel;

    if (clubLevelA < clubLevelB) return -1;

    if (clubLevelA > clubLevelB) return 1;

    if (a.index < b.index) return -1;

    if (a.index > b.index) return 1;

    return 0;
};
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser