Sort items so they show up in a deterministic order.