- Can I create such a list by using company names?
Yes. There is nothing inherently wrong with ranking lists.
- Can a company sue me because I listed them on the bottom?
I will assume your jurisdiction is somewhere in the U.S., where defamation law is quite uniform (although not really enforced nowadays) across states.
As long as you refrain from making false and defamatory statements, you will be fine. Supporting any negative statements with verifiable sources which are readily available to your audience will further deter retaliatory lawsuits by companies that rank low in your list.
Being clear in that your list reflects your (subjective) point of view will allow your readers to place themselves in a position to choose what to believe rather than taking it at face value.
But it is worth mentioning that even prefixing defamatory falsehoods with phrases such as "I think" or "In my opinion" might render your publication a statement of fact – rather than a statement of opinion – if the statement is too factually charged. In that case, those statements would be susceptible of a viable claim of defamation.