diff --git a/includes/actions.inc b/includes/actions.inc
index ed43af4..0541361 100644
--- a/includes/actions.inc
+++ b/includes/actions.inc
@@ -94,8 +94,9 @@ function actions_do($action_ids, $object = NULL, $context = NULL, $a1 = NULL, $a
       }
     }
 
-    // Fire actions, in no particular order.
-    foreach ($actions as $action_id => $params) {
+    // Fire actions, in the order that they are passed in the $actions_id parameter.
+    foreach ($action_ids as $action_id) {
+      $params = $actions[$action_id];
       // Configurable actions need parameters.
       if (is_numeric($action_id)) {
         $function = $params['callback'];
