Found it.
In order to make order by username you need to change two queries in the freichat/server/drivers/base.php file.
public function get_guests() {
$query = "SELECT DISTINCT status_mesg,username,session_id,status,guest,in_room
FROM frei_session
WHERE time>" . $this->online_time2 . "
AND session_id<>" . $_SESSION[$this->uid . 'usr_ses_id'] . "
AND status<>2
AND status<>0
ORDER BY username ASC";
$list = $this->db->query($query)->fetchAll();
return $list;
}
public function get_users() {
$query = "SELECT DISTINCT status_mesg,username,session_id,status,guest,in_room
FROM frei_session
WHERE time>" . $this->online_time2 . "
AND session_id<>" . $_SESSION[$this->uid . 'usr_ses_id'] . "
AND guest=0
AND status<>2
AND status<>0
ORDER BY username ASC";
$list = $this->db->query($query)->fetchAll();
return $list;
}
However even if I forced to make the order ASC...It still makes it DESC!
I really don't have a clue why this is happens.
Any idea for the codologic team?
Thanks!
Found it.
In order to make order by username you need to change two queries in the freichat/server/drivers/base.php file.
````
public function get_guests() {
$query = "SELECT DISTINCT status_mesg,username,session_id,status,guest,in_room
FROM frei_session
WHERE time&gt;" . $this-&gt;online_time2 . "
AND session_id&lt;&gt;" . $_SESSION[$this-&gt;uid . 'usr_ses_id'] . "
AND status&lt;&gt;2
AND status&lt;&gt;0
ORDER BY username ASC";
//echo $query;
$list = $this-&gt;db-&gt;query($query)-&gt;fetchAll();
return $list;
}
````
````
public function get_users() {
$query = "SELECT DISTINCT status_mesg,username,session_id,status,guest,in_room
FROM frei_session
WHERE time&gt;" . $this-&gt;online_time2 . "
AND session_id&lt;&gt;" . $_SESSION[$this-&gt;uid . 'usr_ses_id'] . "
AND guest=0
AND status&lt;&gt;2
AND status&lt;&gt;0
ORDER BY username ASC";
$list = $this-&gt;db-&gt;query($query)-&gt;fetchAll();
return $list;
}
````
However even if I forced to make the order ASC...It still makes it DESC!
I really don't have a clue why this is happens.
Any idea for the codologic team?
Thanks!