Preparing for system design interviews?  Try bugzed.com →

Prettier Plugin: Sort Imports (by length or alphabetically)

JSON →
library 1.0.0 ·javascript
verified Jun 17, 2026

A Prettier plugin that automatically sorts import statements by line length or alphabetically. V1.7.0 active, released for Prettier 2.x+ (Node.js 12+). Differentiators: supports sorting by import line length (unique feature), flexible import type ordering (NPM packages vs local values vs local types), newline stripping between groups, and ignore comments. Competitors like @trivago/prettier-plugin-sort-imports focus on alphabetical/group-based sorting and do not offer length-based sorting.

total hits 9
actors 3 distinct systems
last hit 20d ago AhrefsBot
GPTBot
4
Script
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany