Skip to content

Support negative index as sort attribute #2116

Description

@tonyxty

Make the sort filter support negative indexes, e.g., attribute='-1'.

It enables the sorting a list w.r.t. its last element, useful when sorting names.

(Right now it can be achieved by reversing each list, but it is extremely cumbersome and counter-intuitive.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions