smartrank               Rank a vector based on either alphabetical or
                        frequency order
