Commit 4971de7c authored by David Schulz's avatar David Schulz

Core: Sort document model in a locale aware manner.

Task-number: QTCREATORBUG-12608
Change-Id: If0b9507d31a17cbebfb9fe83fde44738b6e7dcf9
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 72e878a1
......@@ -213,7 +213,7 @@ void DocumentModelPrivate::addEntry(DocumentModel::Entry *entry)
int index;
QString displayName = entry->displayName();
for (index = 0; index < m_entries.count(); ++index) {
if (displayName < m_entries.at(index)->displayName())
if (displayName.localeAwareCompare(m_entries.at(index)->displayName()) < 0)
break;
}
int row = index + 1/*<no document>*/;
......
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