[WEB-2518] chore: Reverse order by of priority keys (#5591)
* make front end changes for priority orderby reversal * chore: handled priority ordering in issues pagination --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
This commit is contained in:
parent
a05876552c
commit
ae1a63f832
4 changed files with 16 additions and 16 deletions
|
|
@ -30,9 +30,9 @@ def order_issue_queryset(issue_queryset, order_by_param="-created_at"):
|
|||
)
|
||||
).order_by("priority_order")
|
||||
order_by_param = (
|
||||
"-priority_order"
|
||||
"priority_order"
|
||||
if order_by_param.startswith("-")
|
||||
else "priority_order"
|
||||
else "-priority_order"
|
||||
)
|
||||
# State Ordering
|
||||
elif order_by_param in [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue