Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Function comparePlaylistOrder

    • Playlist order (D56): artist, then album, then track number, then title, case-insensitive, with empty values last. The id breaks a full tie, so the order is total and "the Track after the cursor" always has one answer. The API and the Jukebox page both sort with this.

      Parameters

      • a: Pick<Track, "id" | "title" | "artist" | "album" | "trackNumber">
      • b: Pick<Track, "id" | "title" | "artist" | "album" | "trackNumber">

      Returns number