diff --git a/server/viewer/vwFileDialog.cpp b/server/viewer/vwFileDialog.cpp index b88691a..5ad035e 100644 --- a/server/viewer/vwFileDialog.cpp +++ b/server/viewer/vwFileDialog.cpp @@ -115,7 +115,7 @@ vwFileDialog::draw(int fontSize) // Sort folders std::sort(_dirEntries.begin(), _dirEntries.end(), - [](const Entry& a, const Entry& b)->bool { return strcasecmp(a.name.toChar(), b.name.toChar())<=0; } ); + [](const Entry& a, const Entry& b)->bool { return strcasecmp(a.name.toChar(), b.name.toChar())<0; } ); forceFileSorting = true; _isEntriesDirty = false; }