Normalize attrlist ordering, add test case for same