I have the following code which is working fine, it gets a list of items from a list in `Realm` called `groceryList` and displays them on a `UITableView` in descending order based on the productName. What I would like to be able to do is scroll to the latest inserted row/item in the table, right now when a new item is inserted the user may not see it since the items are alphabetically reordered and the latest item may not be visible on the tableView.

How can I scroll to the latest inserted row/item in a UITableView?

**Realm Objects:** 

```
    class Item:Object{
        @objc dynamic var productName:String = ""
        @objc dynamic var isItemActive = true
        @objc dynamic var createdAt = NSDate()
    }

    class ItemList: Object {
        @objc dynamic var listName = ""
        @objc dynamic var createdAt = NSDate()
        let items = List<Item>()
    }

```

**UITableView:** 

```
    class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate{

        var allItems : Results<Item>!
        var groceryList : ItemList!

        override func viewDidLoad() {
            super.viewDidLoad()
            groceryList = realm.objects(ItemList.self).filter("listName = %@", "groceryList").first              
            updateResultsList()
        }

        func updateResultsList(){
            if let list = groceryList{
                allItems  = activeList.items.sorted(byKeyPath: "productName", ascending: false)
            }
        }

        func numberOfSections(in tableView: UITableView) -> Int {
            return 1
        }
        func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
            return allItems.count
        }
        func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {       
            let cell = tableView.dequeueReusableCell(withIdentifier: "reusableCell", for: indexPath) as! CustomCell       
            let data = allItems[indexPath.row]      
            cell.displayProductName.text = data.productName
            return cell
        }  
    }

```