Commit d4ffb625 authored by mcarare's avatar mcarare
Browse files

For #4540 Sort tabs in a collection list with newest on top

parent 692aa52f
......@@ -22,7 +22,7 @@ internal class TabCollectionAdapter(
override val tabs: List<Tab> by lazy {
entity
.tabs
.sortedBy { it.createdAt }
.sortedByDescending { it.createdAt }
.map { TabAdapter(it) }
}
......
......@@ -19,6 +19,12 @@ permalink: /changelog/
* Adds `Resources.Theme.resolveAttribute(Int)` to quickly get a resource ID from a theme.
* Adds `Context.getColorFromAttr` to get a color int from an attribute.
* **feature-customtabs**
* Added `CustomTabWindowFeature` to handle windows inside custom tabs, PWAs, and TWAs.
* **feature-tab-collections**
* Behavior change: In a collection List<TabEntity> is now ordered descending by creation date (newest tab in a collection on top)
# 14.0.1
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v14.0.0...v14.0.1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment