def heap_item(clock, record, shard):
    """Create a tuple of (ordering, (record, shard)) for use in a RecordBuffer."""
    ordering = record['meta']['created_at']
    second_ordering = int(record['meta']['sequence_number'])
    total_ordering = ordering, second_ordering, clock()
    return total_ordering, record, shard
