feature: keep attribute order for aut-num even when executing sort()

also simplify & optimize sort()