edit_application and sorting result