Is there was a way to sort out tasks depending on the tasks location?

Is there was a way to sort out tasks depending on the tasks location?