code-forge-io / code-forge-io/vite-plugin-icons-spritesheet

Reverse Sorting Order

Open
#32 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
175
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.