pascalre / vscode-yaml-sort

This VS Code extension exposes the possibility to sort, format and validate yaml files.
https://marketplace.visualstudio.com/items?itemName=PascalReitermann93.vscode-yaml-sort
MIT License
41 stars 2 forks source link

First level keys not sorted by default with `sort yaml` command #193

Open UyttenhoveSimon opened 4 months ago

UyttenhoveSimon commented 4 months ago

Hello,

First thanks for your extension. Second, apologies if such thing exists but I could not find a similar issue opened/closed or anything in the documentation.

Issue:

nq:
  auth:
    org-organization-uuids:
      '7680': toto
    org-sso-ids:
      '7680': tata
  deployments:
    dashboard:
      api:
        key: 7df5f
        url: ${url}
      data:
        environment: UAT
        manifest-file: file:/data/workdir/manifest.json
      enabled: true

environment:
  name: Test

When using "sort yaml" command, the nq key and its child nodes are not placed below environment key. If I use "Custom sort 1" it does the sorting as expected.

Is this behavior expected ?

Thanks in advance.