180:203 lines copies papers and sorts it (no actual filter applied)
lines 205-260: Applies filter AND sort, then calls setAppliedFilters.
Both fire on every dependency change. The first effect's result is immediately overwritten by the second.
I think first useEffect is dead, test it out