Skip to content

Commit 0854481

Browse files
committed
Add comment
1 parent 94af683 commit 0854481

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/tailwindcss/src/utils/compare.ts

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export function compare(a: string, z: string) {
4040
if (aNumber < zNumber) return -1
4141
if (aNumber > zNumber) return 1
4242

43+
// Continue with the next character otherwise short strings will appear
44+
// after long ones when containing numbers. E.g.:
45+
// - bg-red-500/70
46+
// - bg-red-500
4347
continue
4448
}
4549

0 commit comments

Comments
 (0)