Why can't we reverse the array of pairs using STL?

In the above program, if the reverse is true, then we reverse the array of pairs<string,string> using iterations. how to reverse it using reverse function in STL?.

@subham221 just use sort stl to reverse ( descending order)

reverse using reverse stl


@subham221
i hope your doubt is cleared if yes dont forget to mark it as resolved :smiley: