Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
sorting is now even more natural
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed Jan 29, 2020
1 parent d8ff4ac commit e5e7961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ static int strnatcmp(const char *s1, const char *s2) {
}

if (!(isdigit(*s1) && isdigit(*s2))) {
if (*s1 != *s2) {
return (int)*s1 - (int)*s2;
if (toupper(*s1) != toupper(*s2)) {
return toupper(*s1) - toupper(*s2);
}
++s1;
++s2;
Expand Down

0 comments on commit e5e7961

Please sign in to comment.