Dynamic filtering in page collections - how to?

I’ve had a look in the page collection and taxonomies parts of the docs, and have a good idea how they’ll work. What I wonder though is, how could I integrate dynamic filtering?

I have a portfolio page where I would like to list all sub pages or better previews of it. I want to integrate several ‘sort by’ buttons (category a, category b, client, etc.) So is something possible like: onClicksort items by client?

How about listing everything in the page collection but adding classes to the items using the taxonomy tags, then with onClick showing/hiding them with CSS? That might be super snappy in use for something the size of a portfolio page. If the entire list is huge then that might not be the best option.

Yes, I will consider this. Sounds like a nifty little solution. Thanx!