Using Lists and IComparable Interface

Hi guys. I’m trying to implement lists in my unity game and I keep getting this error all the time. I made a new class in a new file:

using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;

public class DayKeyframe : IComparable<DayKeyframe>
    public double time = 0;
    public Color ambientColor = Color.white;
    public float ambientIntensity = 0;
    public Color fogColor = Color.white;
    public float fogDensity = 0;
    public float globSelfIllumIntensity = 0;
    public float skyBoxBlendFactor = 0;

    public int CompateTo(DayKeyframe rhs)
        return this.time.CompareTo(rhs.time);

And this code results in a fallowing error:
error CS0535: DayKeyframe' does not implement interface member System.IComparable.CompareTo(DayKeyframe)’

I need to create a list of DayKeyframe classes and be able to sort them with respect to the time variable. Can someone please tell me what’s the best way of doing it. Some code is also appreciated as I only used STL lists in C++

Thanks, Kamil

Typo perhaps? CompateTo rather than CompareTo.