how do you make sure that this will return the same result at all time? in particular, how are the buckets "ordered"?