Since the sort is of the complete album, which may be say a blend of dark colors, using just the dominant color is insufficient; rather an overall image lightness might yield better results.
Option A: locate algorithm to get overall image lightness
Option B: make use of ColorThief palette and take average of primary colors. One problem is ColorThief does not yield weights as part of the palette
Option C: rewrite ColorThief
Since the sort is of the complete album, which may be say a blend of dark colors, using just the dominant color is insufficient; rather an overall image lightness might yield better results.
Option A: locate algorithm to get overall image lightness Option B: make use of ColorThief palette and take average of primary colors. One problem is ColorThief does not yield weights as part of the palette Option C: rewrite ColorThief