diff --git a/html/ops/manage_app_versions.php b/html/ops/manage_app_versions.php
index 7c4e04c866..b867f2ae53 100644
--- a/html/ops/manage_app_versions.php
+++ b/html/ops/manage_app_versions.php
@@ -138,7 +138,7 @@ echo "
ID # |
deprecated? |
\n";
-$q="SELECT * FROM app_version ORDER BY appid, version_num, platformid";
+$q="SELECT * FROM app_version ORDER BY appid, platformid, plan_class, version_num";
$result = mysql_query($q);
$Nrow=mysql_num_rows($result);
for($j=1;$j<=$Nrow;$j++){