Rewrite sort-imports to not be line-based (#270)