diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/artist.js | 6 | ||||
-rw-r--r-- | src/data/things/group.js | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js index 8f32afd7..a3766f00 100644 --- a/src/data/things/artist.js +++ b/src/data/things/artist.js @@ -5,6 +5,7 @@ import find from '#find'; import {unique} from '#sugar'; import Thing from '#thing'; import {isName, validateArrayItems} from '#validators'; +import {sortAlphabetically} from '#wiki-data'; import {withReverseContributionList} from '#composite/wiki-data'; @@ -287,5 +288,10 @@ export class Artist extends Thing { return {artistData, artistAliasData}; }, + + sort({artistData, artistAliasData}) { + sortAlphabetically(artistData); + sortAlphabetically(artistAliasData); + }, }); } diff --git a/src/data/things/group.js b/src/data/things/group.js index a32cd64d..462c928a 100644 --- a/src/data/things/group.js +++ b/src/data/things/group.js @@ -143,6 +143,10 @@ export class Group extends Thing { return {groupData, groupCategoryData}; }, + + // Groups aren't sorted at all, always preserving the order in the data + // file as-is. + sort: null, }); } |