Skip to content
Snippets Groups Projects
Commit d1766fa5 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

sort by year ascending

parent 47694e63
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ T = TypeVar('T', bound=PresentationModel)
def get_data(table_class: Type[T]) -> Sequence[T]:
select_statement = select(table_class).join(NREN).order_by(NREN.name.asc(), table_class.year.desc())
select_statement = select(table_class).join(NREN).order_by(NREN.name.asc(), table_class.year.asc())
is_admin = (not current_user.is_anonymous) and current_user.is_admin
preview = is_admin and request.args.get('preview') is not None
if not preview:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment