Kodi Community Forum
Win How to sort movies without using sets (in playlists)? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Win How to sort movies without using sets (in playlists)? (/showthread.php?tid=127793)



How to sort movies without using sets (in playlists)? - serieofilo - 2012-04-05

Hello,

I know that if I use the setting:

System > Settings > Video > Library > Group movies in sets > Enable

then all movies that are in the same set (as per the scraper gathered information or by editing manually the NFO file) will be grouped and sorted.

This sort is done by default using the title but I can use <sorttitle></sorttitle>.

OK. As I don't like some "automatic sets" (like the one that group Disney Movies) I've disabled this settings but I have the information for set and sorttitle in the NFO files for my movies.

But ... this doesn't work. For example, these are fragments of 3 NFO files:

<title>Ice Age 3: El origen de los dinosaurios (La edad de hielo 3)</title>
<originaltitle>Ice Age: Dawn of the Dinosaurs (Ice Age 3)</originaltitle>
<sorttitle>Ice Age 3</sorttitle>

<title>Ice Age 2: El deshielo (La edad de hielo 2)</title>
<originaltitle>Ice Age 2: The Meltdown</originaltitle>
<sorttitle>Ice Age 2</sorttitle>

<title>Ice Age: La edad de hielo</title>
<originaltitle>Ice Age</originaltitle>
<sorttitle>Ice Age 1</sorttitle>

When I go the the Main Screen and select "Movies" then I get the movies in the right order:

<title>Ice Age: La edad de hielo</title>
<title>Ice Age 2: El deshielo (La edad de hielo 2)</title>
<title>Ice Age 3: El origen de los dinosaurios (La edad de hielo 3)</title>

but if I create a "playlist" that select by "path" containing "Kids" then I only can sort by "Title" so these movies appear in this order:

<title>Ice Age 2: El deshielo (La edad de hielo 2)</title>
<title>Ice Age 3: El origen de los dinosaurios (La edad de hielo 3)</title>
<title>Ice Age: La edad de hielo</title>

Why? Well, an "space" and "number" are lower than the ":" ...

My question is: is it possible to sort using <sorttitle> in playlists?

Thanks.



RE: How to sort movies without using sets (in playlists)? - jmarshall - 2012-04-05

Not currently by the looks. Should be a straight forward addition for someone interested in doing some new code for XBMC though. See xbmc/playlists/SmartPlaylist.h/cpp


RE: How to sort movies without using sets (in playlists)? - Montellese - 2012-04-12

I have created PR876 for this as IMO it makes absolutely no sense to ignore sorttitle just for smartplaylists.


RE: How to sort movies without using sets (in playlists)? - orewagundam79 - 2012-07-07

Hello,
sorry if I'm reviving an old thread, but i noticed the same problem occurs when using tv shows smart playlists, i think the sorting code should use c07 instead of c10 for tvshows (that's what it says in the xbmc wiki..)