.compareTo(o1.getSong().getUserData().getTimeAdded());
}
});
int totalItems = favoriteItems.size() + collectionItems.size();
bus.post(new GeneratePlaylistsProgressChangedEvent(this, 0, totalItems));
writePlaylist(new File(syncPath, "GS Favorites.m3u"), favoriteItems, 0, totalItems);
writePlaylist(new File(syncPath, "GS Collection.m3u"),
collectionItems,
favoriteItems.size(),