Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
List of sort methods

These ID's can be used with the Container.SetSortMethod(id) function. More...

Enumerations

enum  SortBy {
  SortByNone = 0 , SortByLabel , SortByDate , SortBySize ,
  SortByFile , SortByPath , SortByDriveType , SortByTitle ,
  SortByTrackNumber , SortByTime , SortByArtist , SortByArtistThenYear ,
  SortByAlbum , SortByAlbumType , SortByGenre , SortByCountry ,
  SortByYear , SortByRating , SortByUserRating , SortByVotes ,
  SortByTop250 , SortByProgramCount , SortByPlaylistOrder , SortByEpisodeNumber ,
  SortBySeason , SortByNumberOfEpisodes , SortByNumberOfWatchedEpisodes , SortByTvShowStatus ,
  SortByTvShowTitle , SortBySortTitle , SortByProductionCode , SortByMPAA ,
  SortByVideoResolution , SortByVideoCodec , SortByVideoAspectRatio , SortByAudioChannels ,
  SortByAudioCodec , SortByAudioLanguage , SortBySubtitleLanguage , SortByStudio ,
  SortByDateAdded , SortByLastPlayed , SortByPlaycount , SortByListeners ,
  SortByBitrate , SortByRandom , SortByChannel , SortByChannelNumber ,
  SortByDateTaken , SortByRelevance , SortByInstallDate , SortByLastUpdated ,
  SortByLastUsed , SortByClientChannelOrder , SortByTotalDiscs , SortByOrigDate ,
  SortByBPM , SortByOriginalTitle , SortByProvider , SortByUserPreference
}
 

Detailed Description

These ID's can be used with the Container.SetSortMethod(id) function.

Note
The on field named part with String shows the string used on GUI to set this sort type.

Enumeration Type Documentation

◆ SortBy

enum SortBy
Enumerator
SortByNone 

0 :

SortByLabel 

1 : Sort by Name (String: Label)

SortByDate 

2 : Sort by Date (String: Date)

SortBySize 

3 : Sort by Size (String: Size)

SortByFile 

4 : Sort by filename (String: File)

SortByPath 

5 : Sort by path (String: Path)

SortByDriveType 

6 : Sort by drive type (String: DriveType)

SortByTitle 

7 : Sort by title (String: Title)

SortByTrackNumber 

8 : Sort by track number (String: TrackNumber)

SortByTime 

9 : Sort by time (String: Time)

SortByArtist 

10 : Sort by artist (String: Artist)

SortByArtistThenYear 

11 : Sort by first artist then year (String: ArtistYear)

SortByAlbum 

12 : Sort by album (String: Album)

SortByAlbumType 

13 : Sort by album type (String: AlbumType)

SortByGenre 

14 : Sort by genre (String: Genre)

SortByCountry 

15 : Sort by country (String: Country)

SortByYear 

16 : Sort by year (String: Year)

SortByRating 

17 : Sort by rating (String: Rating)

SortByUserRating 

18 : Sort by user rating (String: UserRating)

SortByVotes 

19 : Sort by votes (String: Votes)

SortByTop250 

20 : Sort by top 250 (String: Top250)

SortByProgramCount 

21 : Sort by program count (String: ProgramCount)

SortByPlaylistOrder 

22 : Sort by playlist order (String: Playlist)

SortByEpisodeNumber 

23 : Sort by episode number (String: Episode)

SortBySeason 

24 : Sort by season (String: Season)

SortByNumberOfEpisodes 

25 : Sort by number of episodes (String: TotalEpisodes)

SortByNumberOfWatchedEpisodes 

26 : Sort by number of watched episodes (String: WatchedEpisodes)

SortByTvShowStatus 

27 : Sort by TV show status (String: TvShowStatus)

SortByTvShowTitle 

28 : Sort by TV show title (String: TvShowTitle)

SortBySortTitle 

29 : Sort by sort title (String: SortTitle)

SortByProductionCode 

30 : Sort by production code (String: ProductionCode)

SortByMPAA 

31 : Sort by MPAA (String: MPAA)

SortByVideoResolution 

32 : Sort by video resolution (String: VideoResolution)

SortByVideoCodec 

33 : Sort by video codec (String: VideoCodec)

SortByVideoAspectRatio 

34 : Sort by video aspect ratio (String: VideoAspectRatio)

SortByAudioChannels 

35 : Sort by audio channels (String: AudioChannels)

SortByAudioCodec 

36 : Sort by audio codec (String: AudioCodec)

SortByAudioLanguage 

37 : Sort by audio language (String: AudioLanguage)

SortBySubtitleLanguage 

38 : Sort by subtitle language (String: SubtitleLanguage)

SortByStudio 

39 : Sort by studio (String: Studio)

SortByDateAdded 

40 : Sort by date added (String: DateAdded)

SortByLastPlayed 

41 : Sort by last played (String: LastPlayed)

SortByPlaycount 

42 : Sort by playcount (String: PlayCount)

SortByListeners 

43 : Sort by listener (String: Listeners)

SortByBitrate 

44 : Sort by bitrate (String: Bitrate)

SortByRandom 

45 : Sort by random (String: Random)

SortByChannel 

46 : Sort by channel (String: Channel)

SortByChannelNumber 

47 : Sort by channel number (String: ChannelNumber)

SortByDateTaken 

48 : Sort by date taken (String: DateTaken)

SortByRelevance 

49 : Sort by relevance

SortByInstallDate 

50 : Sort by installation date <en>(String: installdate)

SortByLastUpdated 

51 : Sort by last updated <en>(String: lastupdated)

SortByLastUsed 

52 : Sort by last used (String: lastused)

SortByClientChannelOrder 

53 : Sort by client channel order (String: ClientChannelOrder)

SortByTotalDiscs 

54 : Sort by total number of discs (String: totaldiscs)

SortByOrigDate 

55 : Sort by original release date (String: Originaldate)

SortByBPM 

56 : Sort by BPM (String: bpm)

SortByOriginalTitle 

57 : Sort by original title (String: OriginalTitle)

SortByProvider 

58 : Sort by provider (String: Provider)

v20 Skinning engine changes
SortByProvider New sort method added.
SortByUserPreference 

59 : Sort by user preference (String: UserPreference)

v20 Skinning engine changes
SortByUserPreference New sort method added.