PHP and MySQL content displaying out of order
===

I'm having a problem with PHP and MySQL. I'm dynamically generating a page with different types of content. In the rendered page, for whatever reason my "post" content is always appearing on top of my "static" content, and I want the opposite to happen. Does there appear to be anything in my code that would make this happen, or do you think the problem has something to do with my database? Thanks.

    $query = "SELECT * FROM content WHERE pages LIKE '%$pageID%'";
    $result = mysql_query($query) or die(mysql_error());
    while ($row = mysql_fetch_assoc($result)) {
    
    // Display pages's static content
    
    if ($row['type'] == "static") {
    
    	echo "
    	  	<h2>" . $row['tile'] . "</h2>
    	  	<content>" . $row['body'] . "</content>
    	";
    }
    
    // Display pages's posts
    
    else {
    	echo "
    	  	<h2>" . $row['tile'] . "</h2>
    	  	<content>" . $row['body'] . "</content>
    	";
    }

