https://helperbyte.com/questions/419571/sampling-in-order-phpquery