##// END OF EJS Templates
fixed default sorting on main page with sorting using wrapped lower() call on database level
marcink -
r2354:f3417f0d beta
parent child Browse files
Show More
@@ -28,6 +28,8 b' import traceback'
28 28 import logging
29 29 import cStringIO
30 30
31 from sqlalchemy import func
32
31 33 from rhodecode.lib.vcs import get_backend
32 34 from rhodecode.lib.vcs.exceptions import RepositoryError
33 35 from rhodecode.lib.vcs.utils.lazy import LazyProperty
@@ -223,7 +225,7 b' class ScmModel(BaseModel):'
223 225 if all_repos is None:
224 226 all_repos = self.sa.query(Repository)\
225 227 .filter(Repository.group_id == None)\
226 .order_by(Repository.repo_name).all()
228 .order_by(func.lower(Repository.repo_name)).all()
227 229
228 230 repo_iter = CachedRepoList(all_repos, repos_path=self.repos_path,
229 231 order_by=sort_key)
General Comments 0
You need to be logged in to leave comments. Login now