Always sort attributes

Move attribute sorting to parseAttribsToArray() so all client functions
get a sorted list. This should unify attribute ordering with Redcloth.