Skip to content

Implement a sort-keys function #17

Description

@zkry

Using tree-sitter, it would be useful to have a command to sort the keys in a map.

So this would transfer the following document:

keys:
  ddd: 9
  bbb: 2
  ccc: 8
  aaa: 1

into

keys:
  aaa: 1
  bbb: 2
  ccc: 8
  ddd: 9

when run on the key keys:.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions