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

@@ -177,7 +177,7 @@ def get_event_file_rec_list(
{sql_priority}
{sql_group}
{sql_enabled}
ORDER BY `event_file`.created_on DESC, `event_file`.updated_on DESC
ORDER BY `event_file`.priority DESC, -`event_file`.sort DESC, `event_file`.created_on DESC, `event_file`.updated_on DESC, `event_file`.filename ASC, `event_file`.extension ASC
{sql_limit};
"""
log.debug(sql)