mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Sort last TU votes by vote and by user name
Instead of using a random secondary order, sort by the ID of the last vote first, then by user name. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
1e9d539acf
commit
333ce08027
1 changed files with 1 additions and 1 deletions
|
@ -1007,7 +1007,7 @@ function last_votes_list() {
|
|||
$q .= "TU_VoteInfo, Users WHERE TU_VoteInfo.ID = TU_Votes.VoteID AND ";
|
||||
$q .= "TU_VoteInfo.End < UNIX_TIMESTAMP() AND ";
|
||||
$q .= "Users.ID = TU_Votes.UserID AND Users.AccountTypeID = 2 ";
|
||||
$q .= "GROUP BY UserID ORDER BY LastVote DESC";
|
||||
$q .= "GROUP BY UserID ORDER BY LastVote DESC, UserName ASC";
|
||||
$result = $dbh->query($q);
|
||||
|
||||
$details = array();
|
||||
|
|
Loading…
Add table
Reference in a new issue