Sorting of 'attribs' in html