projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8860c3e
)
Improve item ordering
author
Joey Schulze
<joey@infodrom.org>
Thu, 22 Sep 2011 21:09:42 +0000
(23:09 +0200)
committer
Joey Schulze
<joey@infodrom.org>
Thu, 22 Sep 2011 21:09:42 +0000
(23:09 +0200)
lib/general.php
patch
|
blob
|
history
diff --git
a/lib/general.php
b/lib/general.php
index
97d5935
..
885d852
100644
(file)
--- a/
lib/general.php
+++ b/
lib/general.php
@@
-244,7
+244,7
@@
function grid_lookup_sql($table,$id,$text)
if (empty($_GET['mask'])) return;
- $sql = "SELECT $id,$text FROM $table ORDER BY $
id
";
+ $sql = "SELECT $id,$text FROM $table ORDER BY $
text
";
$sth = $db->query($sql);
$result = array();