private int SortByArtist(SongListItem first, SongListItem second) { if (StartsWithSymbol(first.Song.Artist) && !StartsWithSymbol(second.Song.Artist)) { return(-1); } if (StartsWithSymbol(second.Song.Artist) && !StartsWithSymbol(first.Song.Artist)) { return(1); } if (StartsWithSymbol(first.Song.Artist) && StartsWithSymbol(second.Song.Artist)) { return(0); } return(String.CompareOrdinal(first.Song.Artist, second.Song.Artist)); }
private int SortByLength(SongListItem first, SongListItem second) { return(first.Song.PlayableLength.CompareTo(second.Song.PlayableLength)); }
private int SortByBpm(SongListItem first, SongListItem second) { return(first.Song.StartBPM.CompareTo(second.Song.StartBPM)); }