Add sort to Models and RepoModels