bitrate_sort_func

@accepts(RB.RhythmDBEntry, RB.RhythmDBEntry, gpointer)
@returns(gint)
def bitrate_sort_func(a, b, data)

Sort function for sorting by bitrate. Lossless encodings (as identified by media type) are considered to have the highest possible bitrate. Falls back to sorting by location for equal bitrates.

a :

a RB.RhythmDBEntry

b :

a RB.RhythmDBEntry

data :

nothing

Returns :

result of sort comparison between a and b.