Fixed a couple issues related to sorting of Items in the views.