Collections.sort is not sorting data
<p>I have a custom class called <code>Song</code> like this-</p>

<pre><code>public class Song implements Parcelable {
private String mTitle;
private String mArtist;
private long mID;
private long albumID;

public Song(long id,String title, String artist,long albumId)
{
    this.mID=id;
    this.mTitle=title;
    this.mArtist=artist;
    this.albumID=albumId;
}

public long getAlbumID() {
    return albumID;
}

public void setAlbumID(long albumID) {
    this.albumID = albumID;
}

public long getID()
{
    return mID;
}

public String getArtist() {
    return mArtist;
}

public String getTitle() {
    return mTitle;
}

public void setID(long mID) {
    this.mID = mID;
}

public void setTitle(String mTitle) {
    this.mTitle=mTitle;
}

public void setArtist(String mArtist) {
    this.mArtist = mArtist;
}


@Override
public int describeContents() {
    return 0;
}

@Override
public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(mTitle);
    parcel.writeString(mArtist);
    parcel.writeLong(mID);
    parcel.writeLong(albumID);
}

public static final Parcelable.Creator CREATOR=new Parcelable.Creator()
{
    public Song createFromParcel(Parcel in)
    {
        return new Song(in);
    }

    public Song[] newArray(int size)
    {
        return new Song[size];
    }
};
public Song(Parcel in)
{
    mTitle=in.readString();
    mArtist=in.readString();
    mID=in.readLong();
    albumID=in.readLong();

  }


}
</code></pre>

<p>and a <code>ArrayList&lt;Song&gt;</code>.</p>

<p>I want to sort the data alphabetically. I'm using-</p>

<pre><code>Collections.sort(songList, new Comparator&lt;Song&gt;() {
        @Override
        public int compare(Song a, Song b) {
            return  (a.getTitle().compareToIgnoreCase(b.getTitle()));
        }
    });
</code></pre>

<p>However, my data is still not sorted. The list starts with a song starting with "h", then one with "o" and then one with "s".</p>