Add code to get both views updating from the model.
Add getSorted function.