sort detections by score