Specified sort in R <pre><code>id &lt;- c(1:10) title &lt;- c("Director", "Manager", "Associate", "Director", "Associate", "Director", "Manager", "Director", "Associate", "Director") df &lt;- as.data.frame(cbind(id,title)) df[order(title),] </code></pre> <p>I want to sort this data by designation, but not alphabetically but in some specific order like (Director>Manager>Analyst) using tool R.</p>