This wasn't a societal order but a societal disorder that survived for centuries because the downtrodden were suppressed for generations together. It worked for centuries, but in the favour of the upper classes. In every society, if you see, its the powerful that dictate terms. Also, the caste system was not meant to be by birth. Many brahmins today don't deserve to be called brahmins.