Make sort case-insensitive

git-svn-id: file:///home/vcs/svn/jsweeper/trunk@34 6611ac79-6612-48ef-a1e9-b906f853523e
master
petern 2009-12-20 22:13:33 +00:00
parent cadf094319
commit efd1ad6e3c
1 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,8 @@ static bool BaseSortPredicate(const Base *lhs, const Base *rhs)
}
} else {
// Alphabetic sort
if (ac >= 'a' && ac <= 'z') ac -= 'a' - 'A';
if (bc >= 'a' && bc <= 'z') bc -= 'a' - 'A';
if (ac != bc) {
return ac < bc;
}