Add a sort to context links.
authoryoung hahn
Mon, 26 Apr 2010 15:05:25 +0000 (15:05 +0000)
committeryoung hahn
Mon, 26 Apr 2010 15:05:25 +0000 (15:05 +0000)
context.core.inc

index 71f45b3..eb43bd9 100644 (file)
@@ -313,6 +313,7 @@ function context_links($reset = FALSE) {
       }
     }
     drupal_alter('context_links', $links);
+    uasort($links, 'element_sort');
   }
   return $links;
 }