To rearrange some or all of a group of items, based upon the contents or characteristics of those items.