Skip to content

Reverse Sorting Order #32

Description

@sairus2k

Currently, sprites and icon types are sorted in reverse order, which is inconvenient. For example, TypeScript suggestions also show them in reverse order, which is quite annoying. Seams it came from the glob library. Additionally, the glob library is quite bloated, and it would be good to replace it with a lighter alternative as suggested here: https://github.com/es-tooling/module-replacements/blob/main/docs/modules/glob.md

I would prefer to use node's fs.globSync — as it's a zero-dependency solution, but it requires Node.js 22 (https://nodejs.org/api/fs.html#fsglobsyncpattern-options). Alternatively, we can use https://github.com/thecodrr/fdir. I've tested it, and it provides correct sorting order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions