Compare commits

..

No commits in common. "aa367473644f11e1badbd2f2fb992611ec206949" and "d3161d10175a88e69b83cf6be1dc117df4a62346" have entirely different histories.

3 changed files with 5 additions and 8 deletions

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.12.2", "version": "0.12.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.12.2", "version": "0.12.1",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@ -70,5 +70,5 @@
"postcss-custom-media": "^10.0.2", "postcss-custom-media": "^10.0.2",
"postcss-nesting": "^12.0.2" "postcss-nesting": "^12.0.2"
}, },
"version": "0.12.2" "version": "0.12.1"
} }

View File

@ -75,14 +75,11 @@ export function sortActorsByGender(actors, context = {}) {
const titleSlug = slugify(context.title); const titleSlug = slugify(context.title);
const titleActors = titleSlug ? genderActors.sort((actorA, actorB) => { const titleActors = titleSlug ? genderActors.sort((actorA, actorB) => {
const actorASlug = actorA.slug.split('-')[0]; if (titleSlug.includes(actorA.slug) && !titleSlug.includes(actorB.slug)) {
const actorBSlug = actorB.slug.split('-')[0];
if (titleSlug.includes(actorASlug) && !titleSlug.includes(actorBSlug)) {
return -1; return -1;
} }
if (titleSlug.includes(actorBSlug) && !titleSlug.includes(actorASlug)) { if (titleSlug.includes(actorB.slug) && !titleSlug.includes(actorA.slug)) {
return 1; return 1;
} }