Sort the pending applications by date