def ordered_items(dic, key_order, other_keys=True, default=NotGiven):
    d = dict(dic)
    for key in key_order:
        if key in d:
            yield key, d.pop(key)
        elif default is not NotGiven:
            yield key, default
    if other_keys:
        for key, value in iteritems(d):
            yield key, value
Convert (date, value) sorted lists into contiguous value-per-day data sets. Great for sparklines.
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/containers.py/ordered_items--crossover with--dataset/ETHPy150Open shazow/unstdlib.py/unstdlib/standard/datetime_.py/iterate_date_values