How long do "sold" listings remain on your profile?

I have noticed my profile shows listings that have already been sold for a while. Is there any way to only show active items when someone outside of the game flip staff views my profile?

It’s fairly easy for buyers to sort by On Sale. If I go back far enough I can see items that were sold years ago though so I don’t think it removes too many.