package Ġcom . jd agn ogo . we lov em ar athon . activities . domain Ċ Ċ import Ġcom . jd agn ogo . we lov em ar athon . activities . data . Activities Repository Ċ import Ġcom . jd agn ogo . we lov em ar athon . common . utils . Resource Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . map Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠGet Activities Categories UseCase Ġ@ Inject Ġconstructor ( private Ġval Ġrepository : ĠActiv ities Repository ) Ġ{ ĊĠĠĠ Ġoperator Ġfun Ġinvoke (): ĠFlow < Resource < List < Activities Category >>> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrepository . categories . map Ġ{ Ġlist Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResource . Success ( list . data ?. sorted By Ġ{ Ġit . ordinal Ġ} Ġ?: ĠlistOf ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ