Jump to content

Question about sorting


Recommended Posts

ldexterldesign
Posted (edited)
Hi,
 
Thanks for software
 
Hope you're well
 
Screen cast: https://drive.google.com/open?id=1e_VIjLv1PyIt9ogXx8sR5MFgCrcjqFi6

NB may have to download file because I haven't encoded the video to browser stream
 
The sort by isn't functioning how I would expect (i.e. for a simple name sort it's not even in alphabetic order) - what's the expected behaviour here?
 
If you have any issues (e.g. questions/queries) happy to help
 
Hope this is clear/useful and to hear back
 
Yours faithfully
Edited by ldexterldesign
Posted

Hi, check the metadata of your items. have the sort title been customized for any of them? Thanks.

ldexterldesign
Posted (edited)
Thanks for reply

 

No, meta titles mirror the file names:

 

5bc646e43e0b7_ScreenShot20181016at221319

 

Hope to hear back

 

Cheers

Edited by ldexterldesign
Posted

Have you checked all of them?

Happy2Play
Posted (edited)

Hi,

 

Thanks for software

 

Hope you're well

 

Screen cast: https://drive.google.com/open?id=1e_VIjLv1PyIt9ogXx8sR5MFgCrcjqFi6

 

NB may have to download file because I haven't encoded the video to browser stream

 

The sort by isn't functioning how I would expect (i.e. for a simple name sort it's not even in alphabetic order) - what's the expected behaviour here?

 

If you have any issues (e.g. questions/queries) happy to help

 

Hope this is clear/useful and to hear back

 

Yours faithfully

How are you expecting it to sort?

 

You know "the, a, an" are exempt from title sort order.

  <SortRemoveWords>
    <string>the</string>
    <string>a</string>
    <string>an</string>
  </SortRemoveWords>
Edited by Happy2Play
Posted

Looking at your screen capture right there, everything appears to be sorted correctly (excluding words like "an" and "the").

  • Like 1
ldexterldesign
Posted

Have you checked all of them?

 

 Yes

ldexterldesign
Posted

 

How are you expecting it to sort?

 

You know "the, a, an" are exempt from title sort order.

  <SortRemoveWords>
    <string>the</string>
    <string>a</string>
    <string>an</string>
  </SortRemoveWords>

 

Thanks for reply

 

Okay, I had overlooked this but it's still sorted incorrectly:

 

5bc73ae632e75_ScreenShot20181017at153547

 

Assuming UTF-8, I would expect "-template [task]" to be listed at the top

 

Yours hopefully 

Posted

I think most people would want that to be ignored.  You can make that item sort however you wish by editing the sort title though.

ldexterldesign
Posted (edited)

I think most people would want that to be ignored.  You can make that item sort however you wish by editing the sort title though.

 

Sure, there could be some reserved file naming added for ignoring files but sorting and ignoring[g] are mutually exclusive AFAIC

 

Cheers

 

[g] https://github.com/MediaBrowser/Wiki/wiki/Excluding-files-&-folders

Edited by ldexterldesign
Posted

Hi.  I meant ignore the '-' character and sort based on the actual title.

Posted

Checking windows explorer for comparison, it sorts the same way we do, with -template not at the top.

Happy2Play
Posted (edited)

Sorry yes the "-" is a default removed character.  If you don't like this behavior your would have to shut down your server and edit the system.xml to adjust the SortRemove/Replace options.

  <SortReplaceCharacters>
    <string>.</string>
    <string>+</string>
    <string>%</string>
  </SortReplaceCharacters>
  <SortRemoveCharacters>
    <string>,</string>
    <string>&</string>
    <string>-</string>
    <string>{</string>
    <string>}</string>
    <string>'</string>
  </SortRemoveCharacters>
Edited by Happy2Play
  • Like 1
Posted

And then you need to refresh media titles after doing that.

ldexterldesign
Posted (edited)

Okay, thanks for explaining the logic

 

In my use case, "An" forms part of the "An Event Apart" name and should belong under "a" not "e"

 

I understand why this "feature" exists for large libraries, perhaps with a more constrained content type (e.g. movies / tv shows), but personally I don't want/need it for my small library (i.e. home videos & photos). This coupled with the way the app's dropping UFT-8 characters and "the" just feels overzealous. I can and do name things for a reason and it's sad to have this control taken away.

 

If you're dropping terms I think you should do better at explaining what's happening behind the scenes. Ideally give users the option to opt into this feature via settings or failing that some documentation somewhere (e.g. in the UI or docs, along with instructions)

 

Hope this is useful

 

Regards

 

 https://emby.media/community/index.php?/topic/64126-fixreview-library-sort-by/&do=findComment&comment=637006

Edited by ldexterldesign
Posted

We are using standard lexicon rules here.  I think every librarian in the world would agree with our sorting logic - but, if you don't like it, simply follow the process above to modify it for your installation.

ldexterldesign
Posted

We are using standard lexicon rules here.  I think every librarian in the world would agree with our sorting logic - but, if you don't like it, simply follow the process above to modify it for your installation.

 

> Standard lexicon rules

 

I've come across dropping front-loaded "The" but not dropping front-loaded "An" - what "standard" is this?

 

Yours hopefully

Posted

Fairly universal, I believe.

 

Where would you expect "A Bridge Too Far" to sort?  Typically, people expect under "B".  This is generally because, when dealing with titles of things like movies or books, a whole LOT of them are going to begin with "The," "A," or "An" so these are generally ignored so as not to make sorting almost useless.

 

Again, we do actually provide you a way to override this.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...