Skip to content
Snippets Groups Projects

add sort direction

Merged Nico Vermaas requested to merge sort-direction into master
1 unresolved thread

added a sort direction to the sort (by adding a minus sign in front of the sortfield)

Merge request reports

Approved by

Merged by Mattia ManciniMattia Mancini 1 year ago (Jul 2, 2024 1:47pm UTC)

Merge details

  • Changes merged into master with 96264e32 (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
136 136
137 137 # if a &sort=<field> url parameter is given then use sort, otherwise omit it (backward compatibility)
138 138 if sort:
139 if sort[0]=='-':
140 direction = -1
141 sort = sort[1:]
142 else:
143 direction = 1
  • Nico Vermaas added 1 commit

    added 1 commit

    Compare with previous version

  • Nico Vermaas added 1 commit

    added 1 commit

    Compare with previous version

  • Mattia Mancini approved this merge request

    approved this merge request

  • Mattia Mancini mentioned in commit 96264e32

    mentioned in commit 96264e32

  • merged

  • Please register or sign in to reply
    Loading