typesmart syntax sort as attachment
take symbol renaming in imports into consideration