Important word order mindlessly reversed

“I will give heed to the blameless way. When will You come to me? I will walk within my house in the integrity of my heart.” (Psa 101:2, NASB)

“I will behave myself wisely in a perfect way. O when wilt thou come unto me? I will walk within my house with a perfect heart.” (Psa 101:2, KJV)

Zooming in on the third clause (101:2c) in the Hebrew text we see that “heart integrity” comes before “within my house”

אֶתְהַלֵּ֥ךְ בְּתָם־לְ֝בָבִ֗י בְּקֶ֣רֶב בֵּיתִֽי׃

For the life of me, I cannot find a reason for anyone to put domestic movement ahead of inner integrity. Should not the manner of David’s walk come before the location of his walk? If the priority of David’s way of life is where he is (or the legacy of his family) he is at risk of not conducting a wholesome lifestyle outside his home or apart from family legacy.

I say let our location be secondary to the way we conduct our lives, so that no matter where we are wholeness of heart can be expected from us.