Alphabetize Library Table returns
KiCad is case sensitive but we need to be consistent in displaying sort order as case insensitive (same as file systems) Fixes: lp:1836911 * https://bugs.launchpad.net/kicad/+bug/1836911
This commit is contained in:
parent
c1cd3339fa
commit
ebba15fe67
|
@ -398,6 +398,12 @@ std::vector<wxString> LIB_TABLE::GetLogicalLibs()
|
||||||
ret.push_back( *it );
|
ret.push_back( *it );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We want to allow case-sensitive duplicates but sort by case-insensitive ordering
|
||||||
|
std::sort( ret.begin(), ret.end(), []( const wxString& lhs, const wxString& rhs )
|
||||||
|
{
|
||||||
|
return lhs.CmpNoCase( rhs ) < 0;
|
||||||
|
} );
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue