Sort output adjusted