I have tableview and array with GuestList attending status. All data is save on Firebase Database. Also has a button sortBy where when is clicked I need to sort cells by attending status. Ex: Display all guests with attending status. I'm new in swift. enter image description here
            Asked
            
        
        
            Active
            
        
            Viewed 47 times
        
    0
            
            
        - 
                    1Don't sort cells, sort the data source array and reload the table view. – vadian Feb 18 '21 at 12:37
- 
                    @vadian can you gave me an example how to do that? – AnDon Feb 18 '21 at 12:45
- 
                    As I have no idea what your data model is this is a generic example: https://stackoverflow.com/questions/24130026/swift-how-to-sort-array-of-custom-objects-by-property-value – vadian Feb 18 '21 at 12:47
