two visits with the same dates
the trigger changing visit number should take into consideration situation where you have to visits with the same dates. In such situation visits should be also sorted by visit ids. Here is the trigger to fix: https://git-r3lab.uni.lu/NCER-PD/scheduling-system/-/blob/master/smash/web/models/visit.py#L130