Use native go implementation to sort and adjust imports. Compared to the previous bash version, this is at least 2X faster.