package Ġde . r ki . cor on aw arn app . contact di ary . model Ċ Ċ import Ġde . r ki . cor on aw arn app . util . lists . Has Stable Id Ċ import Ġjava . util . Locale Ċ Ċ interface ĠContact Di ary Person Ġ: ĠHas Stable Id Ġ{ ĊĠĠĠ Ġval Ġperson Id : ĠLong ĊĠĠĠ Ġvar ĠfullName : ĠString ĊĠĠĠ Ġval ĠphoneNumber : ĠString ? ĊĠĠĠ Ġval Ġemail Address : ĠString ? Ċ } Ċ Ċ fun ĠList < Contact Di ary Person >. sort ByName And Id ASC (): ĠList < Contact Di ary Person > Ġ= ĊĠĠĠ Ġthis . sorted With ( compare By ({ Ġit . fullName . toLowerCase ( Locale . ROOT ) Ġ}, Ġ{ Ġit . person Id Ġ})) Ċ