Merge pull request #4999 from finned-palmer/bugfix/fix-dm-sort

interface: fix dm alphabetical sort issue
This commit is contained in:
Liam Fitzgerald 2021-06-09 08:40:14 +10:00 committed by GitHub
commit 2a25cbe9b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ function sidebarSort(
const alphabetical = (a: string, b: string) => {
const aAssoc = associations[a];
const bAssoc = associations[b];
const aTitle = aAssoc?.metadata?.title || b;
const aTitle = aAssoc?.metadata?.title || a;
const bTitle = bAssoc?.metadata?.title || b;
return alphabeticalOrder(aTitle, bTitle);