How to sort an array of structs by timestamp in swift

后端 未结 0 765
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-17 08:00

I have an array of a struct and I would like to be able to sort it by timestamp variable using sort() if possible.

struct Conversation {
let user: User
let me         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题