mapToSortedList
inline fun <P : AnyPanel> LiveData<out AnyPanelCollection>.mapToSortedList(comparator: Comparator<in P> = compareBy(AnyPanel::id)): LiveData<PanelList<P>>
Content copied to clipboard
Maps a collection containing all AnyPanels of all Frontends to a PanelList containing all Panels of type P, sorted by comparator. If no comparator is provided, the Panels will be sorted based on Panel.id from oldest to newest.
If no Panel of type P is present in the collection, an empty PanelList will be returned.