feat: Add tokenSortConfig to preferences controller
Explanation
Adds a tokenSortConfig to PreferencesController to pair with mobile and extension codebases. This config will tell each application which keys tokens are sorted by, which order they are sorted in, and by which sorting callback they should use while being sorted.
References
https://consensyssoftware.atlassian.net/browse/MMASSETS-357 https://consensyssoftware.atlassian.net/browse/MMASSETS-356
Changelog
Looks good! Can we update change log to reflect the update; sth like
@metamask/preferences-controller
-
Added: Added
tokenSortConfigto preferencesController state
Maybe we wont this one if this gets merged first https://github.com/MetaMask/core/pull/4860/files#diff-40a12640df782cc92dd07efa2b2f120024eb7c5cf1d9431893406ef39132e272
Closed as change was included in https://github.com/MetaMask/core/pull/4860