package Ġcom . j br . ash arp library . artist details . ui . dis co graphy Ċ Ċ import Ġcom . j br . cored omain . artist details . Release Ċ Ċ class ĠRelease Primary Type Comparator Ġ: ĠComparator < Release . Primary Type > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcompare ( type 1 : ĠRelease . Primary Type , Ġtype 2 : ĠRelease . Primary Type ): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġtype 1 . sort Index () Ġ- Ġtype 2 . sort Index () ĊĠĠĠ Ġ} Ċ } Ċ Ċ private Ġfun ĠRelease . Primary Type . sort Index (): ĠInt Ġ{ ĊĠĠĠ Ġreturn Ġwhen Ġ( this ) Ġ{ ĊĠĠĠĠĠĠĠ ĠRelease . Primary Type . AL BU M Ġ-> Ġ 0 ĊĠĠĠĠĠĠĠ ĠRelease . Primary Type . SINGLE Ġ-> Ġ 2 ĊĠĠĠĠĠĠĠ ĠRelease . Primary Type . EP Ġ-> Ġ 1 ĊĠĠĠĠĠĠĠ ĠRelease . Primary Type . OTHER Ġ-> Ġ 3 ĊĠĠĠ Ġ} Ċ }