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.
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
globlibrary. Additionally, thegloblibrary 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.mdI 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.