Sort and Filter Documents Based On Populated Fields

Hi ^^
I am working on a project … i ve two models " Application" and “Form”
The “Application” has a ref field " form " .
I want to Sort the Applications based on the “bachelorAverage” field of the Form Model …
Here is the Application Model && the Form Model !
Any Solution ?
Thanks ^^