mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-03 14:37:05 +03:00
Merge pull request #4999 from finned-palmer/bugfix/fix-dm-sort
interface: fix dm alphabetical sort issue
This commit is contained in:
commit
2a25cbe9b8
@ -20,7 +20,7 @@ function sidebarSort(
|
|||||||
const alphabetical = (a: string, b: string) => {
|
const alphabetical = (a: string, b: string) => {
|
||||||
const aAssoc = associations[a];
|
const aAssoc = associations[a];
|
||||||
const bAssoc = associations[b];
|
const bAssoc = associations[b];
|
||||||
const aTitle = aAssoc?.metadata?.title || b;
|
const aTitle = aAssoc?.metadata?.title || a;
|
||||||
const bTitle = bAssoc?.metadata?.title || b;
|
const bTitle = bAssoc?.metadata?.title || b;
|
||||||
|
|
||||||
return alphabeticalOrder(aTitle, bTitle);
|
return alphabeticalOrder(aTitle, bTitle);
|
||||||
|
Loading…
Reference in New Issue
Block a user