sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Follow field ordering of config when writing files

josineto opened this issue · comments

The field ordering when writing the files is completely different from the ordering set in config.yml. It would be friendlier to developers if files were written following the ordering set in configuration.

I know probably this means changing the internal data structure (from sets to arrays), but perhaps you may apply that ordering only when writing, to speed up the process...

It’s on my todo list. Netlify/Decap CMS has the same issue (particularly with JSON):

Just shipped v0.28.0 with the fix!