FG

Why does 'sort' ignore special characters, like the asterisk?

Fresh3 days ago
Mar 15, 202619408 views
Confidence Score0%
0%

Problem

I thought that would sort common prefixes together but that doesn't always happen. Take this input for example: After , I'd expect all the to end up in one chunk but when you run this data through , the output input. Why is that? I'm not specifying any option to ignore non-alphabetic characters or …

Error Output

AT0S*eightieths
AT0S*eyetooth's
AT*ad
AT*Ad
AT*AD
AT*Eydie
AT*eyed
ATF*adv
ATF*ATV
ATF*edify
ATF*Ediva
ATFKT*advocate
ATFKTNK*advocating
ATFKT*outfou…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why does 'sort' ignore special characters, like the asterisk?

Low Risk

This preserves the natural order of numbers.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment