Hey Stefano,
Why are you adding points to the oldest complaint?
If you want to sort the complaints on the base of oldest to newest can't you just use the list operation activity to
sort the list on the base of oldest to newest ( on the basis of created date)?
You can see the Sort activity by clicking here
This is a workaround, but it will work.
Hope it helps!!
I agree with Rishabh's comment. You can use the createdDate system member of an entity to store when it was created originally, and use that date in a data grid to sort the list of all complaints.
If you check the Store ‘createdDate’ checkbox on the right side of the Entity Properties dialog, it becomes available for use in microflows, pages, etc.
If you still want to want to use a point-based system, you could to use a microflow to retrieve all complaints, loop over them and assign a value to an attribute in the Complaint entity based on the createdDate of that entity. Do keep in mind though, that this is a pretty resource intensive operation, as you need to go over all complaints and update every single one of them, every single day. I would not recommend to do it like this and instead just use the createdDate to sort the compaints.