They all put on sackcloth
"They wore burlap" or "they dressed in coarse cloth." This cloth was uncomfortable and could irritate the skin.
from the greatest of them down to the least of them
"including all the important people and all the unimportant people"