diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d3c6b6a..cb82f39b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [1.1.3 / 5.56.3] - 2022-06-?? +### Added +- added group first sorting [#1922](https://github.com/sandboxie-plus/Sandboxie/issues/1922) + ### Fixed - fixed issue with recovery window on delete [#1948](https://github.com/sandboxie-plus/Sandboxie/issues/1948) - fixed double click issue on path column [#1951](https://github.com/sandboxie-plus/Sandboxie/issues/1951) diff --git a/SandboxiePlus/SandMan/Models/SbieModel.cpp b/SandboxiePlus/SandMan/Models/SbieModel.cpp index 3f50f932..41be72a2 100644 --- a/SandboxiePlus/SandMan/Models/SbieModel.cpp +++ b/SandboxiePlus/SandMan/Models/SbieModel.cpp @@ -113,6 +113,8 @@ QList CSbieModel::Sync(const QMap& BoxList, cons QMap, QList > New; QHash Old = m_Map; + bool bGroupsFirst = theConf->GetBool("Options/SortGroupsFirst", false); + bool bWatchSize = theConf->GetBool("Options/WatchBoxSize", false); foreach(const QString& Group, Groups.keys()) @@ -139,6 +141,8 @@ QList CSbieModel::Sync(const QMap& BoxList, cons pNode->IsBold = true; pNode->Values[eName].Raw = Group; + if(bGroupsFirst) + pNode->Values[eName].SortKey = ID; pNode->Values[eStatus].Raw = tr("Box Group"); } else