Make sort case-insensitive
git-svn-id: file:///home/vcs/svn/jsweeper/trunk@34 6611ac79-6612-48ef-a1e9-b906f853523emaster
parent
cadf094319
commit
efd1ad6e3c
|
@ -291,6 +291,8 @@ static bool BaseSortPredicate(const Base *lhs, const Base *rhs)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Alphabetic sort
|
// Alphabetic sort
|
||||||
|
if (ac >= 'a' && ac <= 'z') ac -= 'a' - 'A';
|
||||||
|
if (bc >= 'a' && bc <= 'z') bc -= 'a' - 'A';
|
||||||
if (ac != bc) {
|
if (ac != bc) {
|
||||||
return ac < bc;
|
return ac < bc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue