Fix T72878: Alphabetical sorting in Outliner sorts shorter names last

E.g. "Cube" would be placed after "Cube.001", which is not what you'd
expect. 2.80 handled this correctly.

Loosely based on D6525 by @radcapricorn, but found a bug in that and
prefered to do some further adjustments.

Also activates test for this case.
This commit is contained in:
Julian Eisel
2020-01-08 16:04:00 +01:00
parent 525b0e0ccb
commit f52d9a878d
2 changed files with 14 additions and 7 deletions

View File

@@ -801,7 +801,7 @@ TEST_F(StringCasecmpNatural, TextAndNumbers)
const CompareWordsArray negative{
{"00je møder0", "00je møder1"},
{"05je møder0", "06je møder1"},
// {"Cube", "Cube.001"},
{"Cube", "Cube.001"},
{"Cube.001", "Cube.002"},
{"CUbe.001", "Cube.002"},
{"CUbe.002", "Cube.002"},