Convert an Unordered Factor to an Ordered Factor in R Programming – as.ordered() Function
as.ordered() function in R Language takes an unordered factor as argument and converts it into an ordered factor.
factor: Unordered Factor to be converted
 North North East West Levels: East < North < West
 small large large small medium Levels: large < medium < small