Commit 92c4f26e authored by Daniel Teske's avatar Daniel Teske

FlatModel: Sort projectnodes by path if they have the same displayname

Makes testing easier

Change-Id: I8dd6a01e6c82aec9e6ac37c999934083f72f5355
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 02a97ab9
......@@ -86,7 +86,10 @@ bool sortNodes(Node *n1, Node *n2)
int result = caseFriendlyCompare(project1->displayName(), project2->displayName());
if (result != 0)
return result < 0;
else
result = caseFriendlyCompare(project1->path(), project2->path());
if (result != 0)
return result < 0;
return project1 < project2; // sort by pointer value
} else {
return true; // project is before folder & file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment