Perhaps allow me preface this by saying I am a good-natured agnostic and by no means an expert, but from what I understand . . .
Islam is largely democratic. There is a large emphasis within the religion on equality and on fair treatment of persons in less fortunate circumstances.
As one example, Islam teaches teaches lending money at interest is wrong but venture partnerships are okay; i.e. no predatorial lending, and thus may hit it about right. I read this in a book on world religions. This may be the Qur'an, this may be the Hadith, or this may be among the sayings of the Prophet. Again, I am merely a humble traveler and am by no means an expert.
Now, is there some hierarchy? Of course there is. We humans can be quite hierarchical, even Buddhism probably has hierarchical aspects if you look for it, and modern democracies with their emphasis on equality before the law. If you really look at it, poor people are treated qualitatively different. And I actually favor bringing up the law so that a poor person accused of a crime is treated just as respectfully as a rich person.