Skip to content

[obsidian-bases] Missing documentation for 'sort' property in SKILL.md schema and examples #109

Description

@ALE-ARME

Description

In the obsidian-bases skill (skills/obsidian-bases/SKILL.md), the sort property/block is completely undocumented. While the schema and examples reference groupBy, they do not explain or show how to use sort to order base results (which is natively supported by the Obsidian Bases plugin).

This omission can lead AI coding assistants to overlook or fail to generate valid sorting configurations in .base files.

Proposed Changes

  1. Update the Schema section in SKILL.md to include the sort list:
# Define one or more views
views:
  - type: table | cards | list | map
    name: "View Name"
    limit: 10                    # Optional: limit results
    groupBy:                     # Optional: group results
      property: property_name
      direction: ASC | DESC
    sort:                        # Optional: sort results (supports multiple properties)
      - property: property_name
        direction: ASC | DESC
  1. Update the Examples section to show how multiple sorting criteria can be combined (e.g., sorting by folder first, then by volume, and finally by name):
    sort:
      - property: file.folder
        direction: ASC
      - property: volume
        direction: ASC
      - property: file.name
        direction: ASC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions