Thanks for your reply
I simplify my question because I see that it is a little difficult to understand
I have custom field of type digital which is required on each post.
Yes, I mean sort the posts by this field. To do this, I got the answer via documentation.
> How to avoid that this custom field has similar values via the following logic?:
-If in the creation of the post A, the user insert in the custom field a value ‘x’ that already exist on another post B, it removes that value ‘x’ of the B post and replaces it with ‘x + 1’ as well as all other existing values that are greater than ‘x’ in this custom field on each post.