score:0

Accepted answer
public int compareto(fence other)
{
    return posts.select((p, i) => p.compareto(other.posts[i]))
                .firstordefault(c => c != 0);
}

score:1

    int c = post[1].compareto(other.post[1]);
    if (c == 0)
         c = post[0].compareto(other.post[0]);

Related Query

More Query from same tag