Every time there's a change in the stock of a product, it triggers the sorting of a collection by the app. If the app detects that a product is sold out, it sorts the collection in real-time. Usually in less than 30 minutes.
However, if there are multiple inventory changes in a matter of minutes, we delay the next sort to prevent processing it several times in a very short time. The table below shows how long it takes to start another sorting, depending on the size of the collection:
Collection size  | Minimal re-sorting delay  | 
0-99 products  | 30 minutes  | 
100-499 products  | 45 minutes  | 
500-1999 products  | 90 minutes  | 
2000-9999 products  | 3 hours  | 
10000-99999 products  | 24 hours  | 
100000+ products  | Never  | 
