From 119a369d3678c01d07db7d56fd8dc590d605572e Mon Sep 17 00:00:00 2001 From: casey Date: Thu, 23 Jun 2016 01:59:21 -0700 Subject: [PATCH] Added sorting to the directory browser --- src/musikbox/app/model/DirectoryAdapter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/musikbox/app/model/DirectoryAdapter.cpp b/src/musikbox/app/model/DirectoryAdapter.cpp index f3459757d..99734d036 100755 --- a/src/musikbox/app/model/DirectoryAdapter.cpp +++ b/src/musikbox/app/model/DirectoryAdapter.cpp @@ -81,6 +81,8 @@ void buildDirectoryList(const path& p, std::vector& target) catch (...) { /* todo: log maybe? */ } + + std::sort(target.begin(), target.end(), std::locale("")); } DirectoryAdapter::DirectoryAdapter() {