sort object items, sort array items