Always sort by priority
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
9e90d3bdc0
commit
82d5544015
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
|||
Colors:
|
||||
<table border="0">
|
||||
<?php
|
||||
$sql = "SELECT id, name, color FROM status";
|
||||
$sql = "SELECT id, name, color FROM status ORDER BY priority";
|
||||
$ret = $con->query($sql)->fetch_all(MYSQLI_ASSOC);
|
||||
if ($ret != False)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
{
|
||||
quit();
|
||||
}
|
||||
$stmt = $con->prepare("SELECT status.name AS status, COUNT(*) AS sCount, status.color AS color FROM secondLevel JOIN status ON secondLevel.status_id = status.id WHERE secondLevel.parent_id = (SELECT id FROM topLevel WHERE name = ?) GROUP BY status.id");
|
||||
$stmt = $con->prepare("SELECT status.name AS status, COUNT(*) AS sCount, status.color AS color FROM secondLevel JOIN status ON secondLevel.status_id = status.id WHERE secondLevel.parent_id = (SELECT id FROM topLevel WHERE name = ?) GROUP BY status.id ORDER BY priority");
|
||||
$stmt->bind_param("s", $tile);
|
||||
$stmt->execute();
|
||||
$result = $stmt->get_result();
|
||||
|
|
Loading…
Reference in a new issue