public class Test : Object
{
    public Test ()
    {
        List<string> list = null;
        list.append ("world");
        list.append ("hello");
        list.append ("goodbye");
        list.sort ((CompareFunc) on_compare);
        foreach (string word in list)
            stdout.printf ("%s\n", word);
    }

    private int on_compare (string a, string b)
    {
        return a.collate (b);
    }
}

int main ()
{
    new Test ();
    return 0;
}
