src/dbfs/dirop.c
changeset 34 460f995d3769
parent 33 c71f3053c714
child 36 56427f22e969
--- a/src/dbfs/dirop.c	Fri Oct 17 18:53:05 2008 +0300
+++ b/src/dbfs/dirop.c	Fri Oct 17 19:28:27 2008 +0300
@@ -257,6 +257,7 @@
         " file_tree.\"offset\", file_tree.name, inodes.ino, inodes.type"
         " FROM file_tree LEFT OUTER JOIN inodes ON (file_tree.ino = inodes.ino)"
         " WHERE file_tree.parent = $1::int4 AND file_tree.\"offset\" >= $2::int4"
+        " ORDER BY file_tree.\"offset\""
         " LIMIT $3::int4";
 
     static struct evsql_query_params params = EVSQL_PARAMS(EVSQL_FMT_BINARY) {