diff --git a/features.export.inc b/features.export.inc
index b6e338a..6798ff8 100644
--- a/features.export.inc
+++ b/features.export.inc
@@ -863,7 +863,7 @@ function _features_linetrim($code) {
 function _features_sanitize(&$array) {
   if (is_array($array)) {
     if (_features_is_assoc($array)) {
-      ksort($array);
+      ksort($array, SORT_STRING);
       $array = array_filter($array);
     }
     else {
