Skip to content

Sort step #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Sort step #71

wants to merge 2 commits into from

Conversation

demilsson
Copy link
Contributor

@demilsson demilsson commented Apr 10, 2025

sort

Inputs

  1. Scalar | Series | Event | Number

Output: Scalar | Series | Event | Number

Options

order

Type: String
Required: False
Allowed values: asc | desc
Default value: asc

Shared options

Global options

The following options are available globally on all steps.

Sorts the input in the specified order. By default, the values are sorted
in ascending order. The order can be changed by setting the order
property to desc.


Checklist

  • Test case implemented
  • Test coverage 100%
  • Tested inside a yaml pipeline
  • Documentation added

Example

Show example in yaml file...

- parameter: SortDesc
  steps: 
    - import: [[1, 5, 3]]
    - sort:
      order: desc
# [5, 3, 1]

- parameter: SortAsc
  steps: 
    - import: [[1, 5, 3]]
    - sort:
      order: asc
# [1, 3, 5]

Work item: AB#41543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants