To be more clear, what I was suggesting is to take the section on rank, toss that into the section on matrices, and then toss that into the section on Gaussian elimination (preceding vector spaces). That's useful because the rank of a coefficient matrix tells you the nature of the solution space of the corresponding system.
Then when you cover the rank-nullity theorem in the chapter on linear maps, you'll have the context of 1) what rank means in a matrix, and 2) what rank means in a linear map. That sets up a deeper understanding of how to verify the rank-nullity theorem for any linear map by finding the rank and the nullity using the basic and free variables of the reduced row echelon matrix.
Also I hated hated hated the finding reduced row echelon problems in Apostol so maybe it’s just me and I’m lazy.