1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

fixing sort problems

This commit is contained in:
mchinen 2010-05-06 13:51:33 +00:00
parent d664740a88
commit 19542a4065

View File

@ -2016,7 +2016,8 @@ void AudacityProject::OnSortName()
//if this is not true a crash will occur during redraw after the sort.
while (track) {
for (ndx = 0; ndx < (int)arr.GetCount(); ndx++) {
if (track->GetName() < ((Track *) arr[ndx])->GetName()) {
//do case insensitive sort - cmpNoCase returns less than zero if the string is 'less than' its argument
if (track->GetName().CmpNoCase(((Track *) arr[ndx])->GetName()) < 0) {
break;
}
}