Object detection - how are detections ordered in returned array?

Is there any predictable logic to what the order of detections returned from detectNet class is? If there is a logic, how are the detections sorted?