def compare(x, y):
    """Compares two chunk items.

    Args:
        x: First item to compare
        y: Second item to compare

    Returns:
        < 0 if x is less than y, 0 if they are equal, > 0 if x is greater
    """
    return x[0] - y[0]