def test_sorting():
    foo = Required('foo')
    bar = Required('bar')
    items = [foo, bar]
    expected = [bar, foo]
    result = sorted(items)
    assert result == expected
.. todo::
dataset/ETHPy150Open alecthomas/voluptuous/voluptuous/tests/tests.py/test_sorting--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/npy_npz.py/NpyDataset._deferred_load