Order SIP Profiles by Name by Default (#5365)

SIP profiles were unordered unless $_GET["order_by"] was set. Now if unset, it will order by sip_profile_name by default for nicer ordering.
This commit is contained in:
emaktech 2020-07-29 00:41:06 -04:00 committed by GitHub
parent 11416d89a4
commit d459d06e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,12 @@
}
//get order and order by
$order_by = $_GET["order_by"];
if (isset($_GET["order_by"])) {
$order_by = $_GET["order_by"];
}
else {
$order_by = 'sip_profile_name';
}
$order = $_GET["order"];
//add the search string
@ -222,4 +227,4 @@
//include the footer
require_once "resources/footer.php";
?>
?>