From 208c354284b18eadc8ed52c5cb7c3cb38458d521 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Fri, 30 Dec 2016 07:05:59 +0100 Subject: [PATCH] Sort ignore list alphabetically --- chat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat.php b/chat.php index 8103fa0..cf785a9 100644 --- a/chat.php +++ b/chat.php @@ -1843,7 +1843,7 @@ function send_profile($arg=''){ echo form('profile', 'save')."

$I[profile]

$arg"; thr(); $ignored=[]; - $stmt=$db->prepare('SELECT ign FROM ' . PREFIX . 'ignored WHERE ignby=?;'); + $stmt=$db->prepare('SELECT ign FROM ' . PREFIX . 'ignored WHERE ignby=? ORDER BY LOWER(ign);'); $stmt->execute([$U['nickname']]); while($tmp=$stmt->fetch(PDO::FETCH_ASSOC)){ $ignored[]=htmlspecialchars($tmp['ign']); @@ -1859,7 +1859,7 @@ function send_profile($arg=''){ } echo "
$I[ignore]"; echo "