diff --git a/CRM/Grant/Selector/Search.php b/CRM/Grant/Selector/Search.php
index 099ba64849e4544ec5ad9fc7697a78130074be51..e9a8623ab1198aa9a2d11a0a2ddcaed45080e499 100644
--- a/CRM/Grant/Selector/Search.php
+++ b/CRM/Grant/Selector/Search.php
@@ -283,7 +283,7 @@ class CRM_Grant_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co
     foreach ($sort->_vars as $key => $value) {
       if ($value['name'] == "status_weight" && 1 == $key) {
         $sort = trim($sort->orderBy());
-        $sort .= ', grant_application_received_date DESC';
+        $sort .= ', application_received_date DESC';
         break;
       }
     }
diff --git a/api/v3/Grant/ChangeStatus.php b/api/v3/Grant/ChangeStatus.php
index 2fdfb5503415257aa894e9d1067bc414e3cfe9d3..04b2c87a0bda5bfa5c5652207a9398b6fed5de0b 100644
--- a/api/v3/Grant/ChangeStatus.php
+++ b/api/v3/Grant/ChangeStatus.php
@@ -24,19 +24,19 @@ function civicrm_api3_grant_changestatus($params) {
 
   $status = CRM_Grant_PseudoConstant::grantStatus();
   $infoTooLate = key(CRM_Core_PseudoConstant::accountOptionValues('grant_info_too_late'));
-  $reasonGranItneligible = CRM_Core_OptionGroup::values('reason_grant_ineligible');
+  $reasonGrantIneligible = CRM_Core_OptionGroup::values('reason_grant_ineligible');
 
   $days = ' -' . $infoTooLate . ' days';
   $endDate = date('Y-m-d', strtotime(date('ymd') . $days));
-  $awatingInfo = array_search('Awaiting Information', $status);
-  $inEligible = array_search('Ineligible', $status);
-  $ineligibleReason = array_search('Information not received in time', $reasonGranItneligible);
+  $awaitingInfo = array_search('Awaiting Information', $status);
+  $ineligible = array_search('Ineligible', $status);
+  $ineligibleReason = array_search('Information not received in time', $reasonGrantIneligible);
 
   $error = array();
-  if (!$awatingInfo) {
+  if (!$awaitingInfo) {
     $error[] = "'Awaiting Information'";
   }
-  if (!$inEligible) {
+  if (!$ineligible) {
     $error[] = "'Ineligible'";
   }
   if (!$ineligibleReason) {
@@ -48,9 +48,9 @@ function civicrm_api3_grant_changestatus($params) {
   
   $sql = "UPDATE civicrm_grant cg
 LEFT JOIN civicrm_value_nei_course_conference_details cd ON cd.entity_id = cg.id
-SET cg.status_id = {$inEligible},
+SET cg.status_id = {$ineligible},
 grant_rejected_reason_id = {$ineligibleReason}
-WHERE cg.status_id = {$awatingInfo} AND end_date <= '{$endDate}'";
+WHERE cg.status_id = {$awaitingInfo} AND end_date <= '{$endDate}'";
   CRM_Core_DAO::executeQuery($sql);
 }