The way I set it up for clients is to create 2 sub folders. One active and one inactive.
Move all active accounts to active folder and all inactive accounts to inactive folder.
select AR folder you get all accounts depending on index, select active you only get active accounts.
There is a good description in the help files. Search for “index sort closure”.