Skip to content

"Sort by emoji" fails when one or more items has a non-string emoji #13

@ToMyFriends

Description

@ToMyFriends

The userscript barfs on the line emojiA.localeCompare(emojiB) when emojiA is a non-string type. This happened to me because I have an item called "The Answer" which is represented in the save data as follows:

{
	"text": "The Answer",
	"emoji": 42,
	"discovered": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions