Sort contracts by multiple fields

Sort contracts by multiple fields

Is it possible to sort my contacts using multiple fields. Here is an example of what I'm looking to do.

Let's say I have a list of contacts and each contact has a last activity field with the date of the last activity.

Some contacts will have a task and some won't.

Is it possible to create a custom filter that removes all contacts that have an assigned task and then sort the remaining contacts by last activity date?

Thanks