I’ve a sortable unordered list as follows. How do I use controller to detect this element and get the contents to save each LI item into a row in the database?
There is just so much here you've left us to guess at.
Even the question "how do I use a controller to detect this" is rather odd. Controllers do not detect things in a web page, they respond to HTTP requests.