Dynamically create categories?


if a user uploads a file to an FS collection and updates the meta data to say Documents, how could I organize all of these uploads together in the same collection, but separate into different categories or group them together by category?

I know this has to be easy, but the dynamic parties throwing me.

Please help