Skip to content

CLI: sort reports by word list & location #82

@RickyDaMa

Description

@RickyDaMa

Ideally I'd like to sort by word list, and then by location

Questions/Thoughts:

  • Should Report impl Ord? I don't think so
  • Should Location impl Ord? It could, but how do you manage axis order?
    • Currently they're unsorted due to use of a HashSet
    • Sorting alphabetically is an easy option but probably not what people want (personally I'd want more common axes sorted first, like wght and wdth)
    • We could use insertion order, but we'd have to pull in a new dependency for stable maps
    • Or we could use axis order for the font, but this means you must have a reference to a font to be able to sort. I think this is my current preferred option
  • Exemplars are already sorted, so no more details to sort on

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliImpacts the fontheight CLI programenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions