Reduce dict size, applying relative order rather rather than absolute order