Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Server: sort applications and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Dec 21, 2013
1 parent 699f07d commit 25ad620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/xprivacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function confidence($restricted, $not_restricted) {
$sql = "SELECT DISTINCT package_name, package_version, package_version_code";
$sql .= " FROM xprivacy_app";
$sql .= " WHERE application_name IN (" . implode(',', $apps) . ")";
$sql .= " ORDER BY package_name";
$sql .= " ORDER BY package_name, package_version";
$result = $db->query($sql);
if ($result) {
while (($row = $result->fetch_object())) {
Expand Down Expand Up @@ -457,7 +457,7 @@ function confidence($restricted, $not_restricted) {
$sql .= " WHERE application_name REGEXP '^[^a-zA-Z]'";
else
$sql .= " WHERE application_name LIKE '" . ($letter == '%' ? '\\' : '') . $db->real_escape_string($letter) . "%'";
$sql .= " ORDER BY application_name";
$sql .= " ORDER BY application_name, package_name";
$result = $db->query($sql);
if ($result) {
while (($row = $result->fetch_object())) {
Expand Down

0 comments on commit 25ad620

Please sign in to comment.