INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: help with Expression for sorting  (Read 366 times)

Denti

  • Citizen of the Universe
  • *****
  • Posts: 593
help with Expression for sorting
« on: September 19, 2024, 06:30:46 pm »

I currently use a top level Expression to divide my albums up into

Multiple Artist Compilations and Single-Artist Albums

But if one of the artists for whom I have entire records also has tracks on a compilation, they will appear in both places. I use the custom field "Primary Artist" to indicate which artists' tracks should appear in both places. This is the Expression:

if(isempty([Primary Artist]),  /(Multiple Artists/), 
 [All Artists (Last Name)])/
       ifelse(isequal([album artist (auto)], /(Multiple Artists/)), ;/(Multiple Artists/))&datatype=[
    ]

    Now, what I'd like to do is introduce an alphabetical grouping on the next level down for the Single-Artist Albums. For now I get a list of artists, sorted by last name, displayed by first. It's nice. But I have too many artists.

    What expression language will I need to use to get an A - Z alphabet on the next level down from the main artists, but such that in the As, for example, I only have the primary artists albums grouped together by artist?

    First level:  (Multiple Artists)  -  Main Artists

    Second level from Main Artists: A, B, C, D ....  Z

    Third level down from each letter: A-ha, A.R. Kane, AAYL Trio, etc...
Logged
Pages: [1]   Go Up