Sort A to G and S columns