Just as the Scripture says . . . "Yea, a man may say, Thou hast faith, and I have works: shew me thy faith without thy works, and I will shew thee my faith by my works. - James 2:18
in context TT is talking about how Jesus sees the heart
we are born again by grace through faith <- adopted as sons and imputed with His righteousness
without works
romans 4
5 But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness
___________
not at all what the verse you have posted is speaking of
(a chapter admonishing those who favor some based on their wealth or status)
warning against these actions
saying one may come to you and say
"Yea, a man may say, Thou hast faith, and I have works: shew me thy faith without thy works, and I will shew thee my faith by my works."
so let your faith be perfect and complete