Source:
.foo { line-height: 150px; font-size: 24px; clear: both; }
vim magic here, probably something visual selection based
R
Another one-liner:
s/{\s*\zs.\{-}\ze\s*}/\=join(sort(split(submatch(0), '\s*;\s*')), '; ').';'
This time we use sub-replace-\=, and list manipulation functions (sort(), split(), and join())
sub-replace-\=
sort()
split()
join()