diff --git a/settings/apps.php b/settings/apps.php
index 4f8eba159c2270189dcad22b09232c281c61ee3d..b9ed2cac93a6a12f8562bf0de58bb458c25f9237 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -36,6 +36,10 @@ function app_sort( $a, $b ) {
 
 	}
 
+	if ($a['internal'] != $b['internal']) {
+		return $b['internal'] - $a['internal'];
+	}
+
 	return strcmp($a['name'], $b['name']);
 
 }