Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //S.A. Lowell ******************* Begin
- CString ArtistListSortedThe = ArtistListSorted.GetAt(k).Left(4);
- CString ArtistListThe = ArtistList.GetAt(j).Left(4);
- if((ArtistListThe.CompareNoCase("the ") == 0) && (ArtistListSortedThe.CompareNoCase("the ") == 0))
- {
- ArtistListThe = ArtistList.GetAt(j).Right(ArtistList.GetAt(j).GetLength() - 4);
- ArtistListSortedThe = ArtistListSorted.GetAt(k).Right(ArtistListSorted.GetAt(k).GetLength() - 4);
- if(ArtistListThe.CompareNoCase(ArtistListSortedThe) < 0)
- {
- ArtistListSorted.InsertAt(k, ArtistList.GetAt(j));
- added = 1;
- break;
- }
- }
- else if(ArtistListThe.CompareNoCase("the ") == 0)
- {
- ArtistListThe = ArtistList.GetAt(j).Right(ArtistList.GetAt(j).GetLength() - 4);
- if(ArtistListThe.CompareNoCase(ArtistListSorted.GetAt(k)) < 0)
- {
- ArtistListSorted.InsertAt(k, ArtistList.GetAt(j));
- added = 1;
- break;
- }
- }
- else if(ArtistListSortedThe.CompareNoCase("the ") == 0)
- {
- ArtistListSortedThe = ArtistListSorted.GetAt(k).Right(ArtistListSorted.GetAt(k).GetLength() - 4);
- if(ArtistList.GetAt(j).CompareNoCase(ArtistListSortedThe) < 0)
- {
- ArtistListSorted.InsertAt(k, ArtistList.GetAt(j));
- added = 1;
- break;
- }
- }
- //S.A. Lowell Changed comparison to be Case Insensitive
- //ORIGINAL: if (ArtistList.GetAt(j) < ArtistListSorted.GetAt(k)) {
- else if(ArtistList.GetAt(j).CompareNoCase(ArtistListSorted.GetAt(k)) < 0)
- {
- //S.A. Lowell ******************* End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement