Sort property keys so that properties appear in a predictable order.