refactor of the base, uncached model controller to support sorts. caching is coming soon