updates styles and alphabetizes resources