Sort NFT instances in NFT screen by token ID

pull/7031/head
Hwee-Boon Yar 1 year ago
parent 772d5b942a
commit 1da0560193
  1. 1
      AlphaWallet/Tokens/Collectibles/ViewModels/NFTAssetsPageViewModel.swift

@ -112,6 +112,7 @@ final class NFTAssetsPageViewModel {
let assets = Publishers.CombineLatest(tokenHolders, filter)
.map { self.filter($1, tokenHolders: $0) }
.map { $0.sorted { $0.tokenId < $1.tokenId } }
.map { [SectionViewModel(section: .assets, views: $0)] }
let viewState = assets

Loading…
Cancel
Save