If you set a filter all files that match the filter are listed in the columns.
If you then klick on a row to change the sort order there are different files listed, that don't match the filter. But still the same amount of files is listed.
artist IS Beatles
There are 50 files listed.
Klick on any row to sort on this row.
50 other files are listed.