Sort the vectorized results prior to output