[('0-8', 'beginning'), ('9', '('), ('10-16', 'content'), ('17', '['), (
    '18-21', 'word'), ('22', ']'), ('23', '{'), ('24-35', 'another word'),
    ('36', '}'), ('37', ')')]
Sorting a dictionary by a split key