Bug 1061906 - Allowing sorting of applications

This allows pending applications to be sorted by either date or learner, in either ascending or descending order.  Default is now sorted by date, oldest to newest.