The sorting command has a validFrom property, but some systems can handle sorting based on milkshift. Maybe it would be nice to have a kind of an array where the milkshifts could be specified?
"milkShifts": [
1,
3,
],
In this example the animal should be sorted after milking 1 or milking 3.