com web/bugs: adding random sort order option: include/query.php
| From: | Ferenc Kovacs | Date: | Sat, 28 Jul 2012 19:06:16 +0000 |
| Subject: | com web/bugs: adding random sort order option: include/query.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14022@lists.php.net to get a copy of this message | ||
Commit: 8e3acb14ef9fdb2be99788fd2dc5fc8c74470d2b
Author: Ferenc Kovacs <tyra3l@gmail.com> Sat, 28 Jul 2012 21:06:16 +0200
Parents: f0c483bff2108abc9bb294026db0a900ac8448b7
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=8e3acb14ef9fdb2be99788fd2dc5fc8c74470d2b
Log:
adding random sort order option
Changed paths:
M include/query.php
Diff:
diff --git a/include/query.php b/include/query.php
index d9045d3..bcc0347 100644
--- a/include/query.php
+++ b/include/query.php
@@ -15,7 +15,8 @@ $order_options = array(
'sdesc' => 'summary',
'assign' => 'assignment',
'avg_score' => 'avg. vote score',
- 'votes_count' => 'number of votes'
+ 'votes_count' => 'number of votes',
+ 'RAND()' => 'random',
);
// Fetch pseudo packages