Dynamic Sort

Let us say we have a requirement to sort the result set based on the given input parameter . In most of the system , the developers…