Update DoubleRatio to correctly use the sorted array flag, add descriptive output