TrackSort
What a track list is ordered BY. Its own enum for
TrackQuery's own reason: none of these keys means anything about an artist, andnameis spelledtitleon a song.
stateis deliberately absent. It is three independent booleans rather than one column, so there is no ordering of it an operator would agree with: a benched record and an unmeasured one are not more or less than each other.
type TrackSort = 'title' | 'artist' | 'album' | 'year' | 'duration' | 'rating';