Sorting emails based on priority and Received Date

This link might help you.