package Ġcom . re vol gen x . an ilib . ui . sorting Ċ Ċ import Ġcom . re vol gen x . an ilib . data . model . list . Media ListModel Ċ Ċ class ĠMedia List Sorting Comparator ( ĊĠĠĠ Ġprivate Ġval Ġsorting : ĠMedia List Sorting , ĊĠĠĠ Ġprivate Ġval Ġsorting Type : ĠMedia List Sorting . Media List Sorting Type Ċ ) Ġ: ĠComparator < Media ListModel > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcompare ( o 1 : ĠMedia ListModel ?, Ġo 2 : ĠMedia ListModel ?): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġsorting . compare ( o 1 !! , Ġo 2 !! , Ġsorting Type ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġmake Media List Sorting Comparator ( type : ĠMedia List Sorting . Media List Sorting Type ): ĠMedia List Sorting Comparator Ġ{ ĊĠĠĠ Ġreturn ĠMedia List Sorting Comparator ( Media List Sorting (), Ġtype ) Ċ }