]> git.bts.cx Git - cx.git/blobdiff - cx/lib/posts.php
Order pages asc
[cx.git] / cx / lib / posts.php
index f056c8834797ada3b96a028e07c61a5f6c283b80..8ce6e6bf6a9ad923fe879f4cfac6e45807c56b34 100644 (file)
@@ -246,7 +246,7 @@ function cx_pages_get() {
                FROM posts
                WHERE post_is_page == TRUE
                AND post_is_draft == FALSE
                FROM posts
                WHERE post_is_page == TRUE
                AND post_is_draft == FALSE
-               ORDER BY post_creation_time DESC;';
+               ORDER BY post_creation_time ASC;';
 
        foreach (cx_db_query($sql) as $post) {
                $p = new Post($post);
 
        foreach (cx_db_query($sql) as $post) {
                $p = new Post($post);