nospotify 184 Posted January 17, 2023 Posted January 17, 2023 (edited) I was puzzled by the alphabetization of Artists in my Music library and then realized it's because Emby treats punctuation marks as prior to letters in sorting. As with ignoring "The" in Artist/Title names, shouldn't Emby ignore leading punctuation marks in Title/Name? And the sorting of numbers in a Name/Title is entirely puzzling. In the example image below: 1. [¡Cubanismo!] - this is the visibly obvious example - the leading Spanish upside down exclamation point should be ignored for alphabetization purposes, so it sorts as beginning with "C". 2. [Ali-Naqi] in the deeper metadata is ['Ali-Naqi], which is why it appears up front, but the leading single quote should be ignored for alphabetization purposes. 3. [Stick McGee] in the retrieved-from-MusicBrainz metadata is ["Stick" McGee], but the quotes around the first name should be ignored for alphabetization purposes. 4. And why would alphabetization/sorting go from [10,000 Maniacs] to [29th Street] to [1960s]? Edited January 17, 2023 by wordlover
Happy2Play 9780 Posted January 20, 2023 Posted January 20, 2023 Hard to say without trying to reproduce those Artists. What shows for SortTitle in edit metadata? What is the Sort by option set to on that tab? Sorted to D do to SortTitle Only has that name on Discogs. Spoiler <?xml version="1.0" encoding="utf-8" standalone="yes"?> <artist> <biography><![CDATA[Hardstyle DJ and producer from the Netherlands. Born 25-1-1988]]></biography> <outline><![CDATA[Hardstyle DJ and producer from the Netherlands. Born 25-1-1988]]></outline> <lockdata>false</lockdata> <dateadded>2022-09-08 16:49:35</dateadded> <title>B-Front</title> <sorttitle>DJ B-Front</sorttitle> <runtime>0</runtime> <genre>Hardstyle</genre> <genre>Test</genre> <genre>Example</genre> <genre>Hard Dance</genre> <audiodbartistid>171553</audiodbartistid> <musicbrainzartistid>793b8a4d-8f89-445e-a6da-f0ba42e20c8d</musicbrainzartistid> <uniqueid type="musicbrainzartist">793b8a4d-8f89-445e-a6da-f0ba42e20c8d</uniqueid> <uniqueid type="audiodbartist">171553</uniqueid> <uniqueid type="discogsartist">334053</uniqueid> <discogsartistid>334053</discogsartistid> <album> <title>Infinite</title> <year>2017</year> </album> </artist>
Happy2Play 9780 Posted January 20, 2023 Posted January 20, 2023 (edited) @LukeNo sure without confirmation here from OP but Discoga appears to be a factor here. Zedd Pitbull Edited January 20, 2023 by Happy2Play
nospotify 184 Posted January 20, 2023 Author Posted January 20, 2023 Category is "Artist." Sort is by "Title." Metadata screenclips attached below. All have Discogs and MusicBrainz IDs (i.e. successful lookups). But the Titles vs. Sort titles issue is not really related to the original question: why should punctuation marks be used for sorting at all? Shouldn't they be ignored?
Happy2Play 9780 Posted January 20, 2023 Posted January 20, 2023 Yes the sorttitle is moving items do to characters precede letters. But @Lukewould have to comment on stripping punctuation, but do not know how many artists have punctuation as proper name. Not sure why Music acts differently than other content types here as they match the two fields by default. But looks to be how Discogs adds information. "Stick" McGhee & His Buddies | Discography | Discogs Stick McGhee & His Buddies - MusicBrainz 'Ali Naqi Vaziri | Discography | Discogs علی نقی وزیری - MusicBrainz
nospotify 184 Posted January 20, 2023 Author Posted January 20, 2023 Again, let's keep these two issues separate. How sort titles are retrieved from external databases is one thing. The issue I am flagging is Emby sorting by punctuation marks, which I don't think is how things should work.
Happy2Play 9780 Posted January 20, 2023 Posted January 20, 2023 If it is their name, the punctuation should never be removed. So the issue is the metadata provider not Emby in my opinion.
pwhodges 2012 Posted January 20, 2023 Posted January 20, 2023 In another topic I noted that 20,000 in a title was sorted as 20, not as 20000. This might require special treatment? (aside from the conflict of continental Europe reversing the usage of "," and "." in numbers...). Paul 1
nospotify 184 Posted January 20, 2023 Author Posted January 20, 2023 1 hour ago, Happy2Play said: If it is their name, the punctuation should never be removed. So the issue is the metadata provider not Emby in my opinion. I'm sorry for not being clearer. I am not saying "remove the ¡ from Cubanismo's name" I am saying Emby should ignore leading punctuation marks.
visproduction 315 Posted January 20, 2023 Posted January 20, 2023 (edited) Is everyone aware that fixing this with several regex literals in a js function makes a very noticiable hit on page load times? User servers are not necessarily optimized for running complex js regex. So, you could easily count off a few seconds on a large list with multiple regex sorts, especially if the complex regex sort happens for every page for every user. It's possible to cache some sorts, but that takes extra code and would only really help identical sorts that appear often. If the server was in the cloud, optimized and distributed to multiple locations, then these advanced sort commands can be optimized and the end user could see a fast response. This is not the Emby architecture which runs on a local server. Maybe it can work, but how beneficial would this feature be if it made every large library page load for every person take 2 to 6 seconds longer. That is the danger. The custom sort option, per media entry, solves this issue without extra server load at all. If you wish to admin your collection, then perhaps be prepared to do some data tweaking to make it run better, rather than asking the software to do everything for you and slow down the user experience. Edited January 22, 2023 by visproduction
nospotify 184 Posted January 21, 2023 Author Posted January 21, 2023 I don't know Emby's code and what changes might address this problem, nor the issue flagged by several of us about odd-seeming sorting of names/titles that contain numerals. It would be great to hear from one of the devs, as @Happy2Play asked.
Luke 42079 Posted January 21, 2023 Posted January 21, 2023 Hi, we'll take a look at this. Thanks for reporting. 1
Vicpa 611 Posted January 21, 2023 Posted January 21, 2023 11 hours ago, Luke said: Hi, we'll take a look at this. Thanks for reporting. Hi All, Punctuation marks impacts sorting in all libraries of the app. Everyone's media is different, but some quick and dirty metrics from my media. Type # Artists 1 AlbumArtists 1 Albums 26 Movies - 2 The items with numbers in the title varies. But they are "text" I don't know the "rules" for the alphabetization of text numbers. They are all grouped together where I would expect to see them. -vicpa BTW- The UI lets you fix these pretty easily just edit the Sort Name. I guess it depends on how many you have in your libraries.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now