Add sort options to the media browser for Kodi

The way Kodi’s media is displayed in the media browser seems to be quite strange.

It seems its somewhat alphabetical but the most recently added media seems to be at the bottom (atleast in Movies and Television)

My media library is formatted like this:

Music/Artist/Album/song.mp3
TV/Title/Season/Episode.mkv
Movies/Title/Movie.mkv

Ideally you’d get access to Kodi’s sort options like when accessing Kodi via UPNP would be ideal as I use different sort options for different media types.

Examples of Kodi sort options
TV:
Title/Episodes/Date Added/Year/My Rating
Movies:
Title/Year/Rating/My Rating/MPAA Rating/Date Added/Play Count
Music
Album/Artist/Artist-Year/Year/Date Added/Play Count/Last Played/Rating/My Rating

Each of these also can be sorted either in ascending order or descending order

In terms of feasibility of implementing this it seems it can all be handled by the JSON-RPC request

https://github.com/xbmc/xbmc/blob/e6812e7f78eb046d6b0d71b573c18d437c81319a/xbmc/interfaces/json-rpc/schema/types.json#L103

https://forum.kodi.tv/showthread.php?tid=351836

Seems like this is being worked on also not only for Kodi but for all media servers :+1:

Thanks @casenjo