mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-26 05:42:47 +01:00
Sorting for playlists.
This commit is contained in:
@@ -134,5 +134,8 @@ bool CollectionInfo::itemIsLess(Item *lhs, Item *rhs)
|
|||||||
|
|
||||||
void CollectionInfo::sortItems()
|
void CollectionInfo::sortItems()
|
||||||
{
|
{
|
||||||
std::sort(items.begin(), items.end(), itemIsLess);
|
for(Playlists_T::iterator it = playlists.begin(); it != playlists.end(); it++)
|
||||||
|
{
|
||||||
|
std::sort(it->second->begin(), it->second->end(), itemIsLess);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user