public void Sort(Playlist playlist) { //var sorted = playlist.AllSongs.ToList(); //sorted.Sort((song, song1) => string.Compare(song1.Title,song.Title)); //playlist.Clear(); //playlist.Add(sorted); }
public void Sort(Playlist playlist) { //int n = playlist.SongCount; //RNGCryptoServiceProvider provider = new RNGCryptoServiceProvider(); //while (n > 1) //{ // byte[] box = new byte[1]; // do provider.GetBytes(box); // while (!(box[0] < n * (Byte.MaxValue / n))); // int k = box[0] % n; // n--; // playlist.Move(n, k); //} }
public virtual void AddPlaylist(Playlist playlist) { _playlists.Add(playlist); }