Order by Operator in Pig
While using Order By operator in Pig Latin,If we have not mentioned ASC or DESC , by default it sorts by ASC order.
ex- grunt >OrderedData = order studentDetails by age;
This will sort by default in ASC order.
Otherwise We can mention here as below:
OrderedData = order studentDetails by age DESC;
OrderedData = order studentDetails by age ASC;

