Make sort case-insensitive
git-svn-id: file:///home/vcs/svn/jsweeper/trunk@34 6611ac79-6612-48ef-a1e9-b906f853523e
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user