Data source: http://rosettacode.org/wiki/Sort_disjoint_sublist
