Fixed some issues with sorting on TypedViews and TypedLists in Razor UI