Top K max value by secondary sort