Work on sort of ressults using the priorty and sort fields.

This commit is contained in:
Scott Idem
2022-09-22 14:54:51 -04:00
parent ed7e06b5b2
commit aa981b0913
13 changed files with 30 additions and 27 deletions

View File

@@ -644,7 +644,7 @@ def get_event_meeting_rec_list(
{sql_archived}
{sql_hidden}
{sql_enabled}
ORDER BY `event`.priority DESC, `event`.sort ASC, `event`.updated_on DESC, `event`.created_on DESC
ORDER BY `event`.priority DESC, -`event`.sort DESC, `event`.updated_on DESC, `event`.created_on DESC
{sql_limit};
"""
elif conference and (organization_id or person_id or user_id): # If it is a conference then organization, person, and user are queried as participants (not the owner/organizer)
@@ -665,7 +665,7 @@ def get_event_meeting_rec_list(
{sql_archived}
{sql_hidden}
{sql_enabled}
ORDER BY `event`.priority DESC, `event`.sort ASC, `event`.updated_on DESC, `event`.created_on DESC
ORDER BY `event`.priority DESC, -`event`.sort DESC, `event`.updated_on DESC, `event`.created_on DESC
{sql_limit};
"""
log.debug(sql)