πŸ”€
πŸ’»

Sort Import Statements and Code Lists

Sort import statements, CSS class lists, JSON keys, or any code list into a consistent order.

Nid oes angen mewngofnodi
Input Β· 7 lines
Sorted Β· 7 lines
apple banana cherry date elderberry fig grape

Programming tips

πŸ’»

Many style guides require import statements to be sorted alphabetically. Paste your imports (one per line) and sort A→Z for lint-compliant code.

πŸ’‘

CSS utility classes (Tailwind, etc.) benefit from sorted ordering for easier scanning. Sort your class list and paste it back as the className value.

πŸ”§

JSON key sorting: paste one key per line, sort alphabetically, then reconstruct your object. Useful for normalising API schema definitions.

🎲

Use shuffle mode to randomise the order of test cases, mock data entries, or feature flags for unbiased testing order.

Sut Mae'n Gweithio

1
Ewch i mewn
Enter your data into the tool above. Everything stays local to your browser.
2
Proses
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Lawrlwythwch
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Pam defnyddio ein un ni?

βœ“Hollol rhad ac am ddim - dim costau cudd, byth
βœ“Nid oes angen cyfrif, e-bost na mewngofnodi
βœ“Nid yw ffeiliau byth yn gadael eich dyfais
βœ“Dim cyfyngiadau maint ffeil o gwbl
βœ“Dim dyfrnodau ar unrhyw allbwn

Also check out…

Cwestiynau Cyffredin