how to orderby title (title includes alphanumeric characters)?
-
I have this code:
If(empty($_GET["chapter_id"])) {query_posts(array('category__in' => array($category->cat_ID),'posts_per_page'=>-1,'paged'=>$paged, 'orderby'=>'title','order'=>'ASC'));}
How can i orderby title where title is alphanumeric eg.
Title 1. New Title
Title 2. New Title
Title 10. New TitleCurrently, if i order by title, i get:
Title 1. New Title
Title 10. New Title
Title 2. New TitleI’ve searched and can’t find a solution.
[Please post code snippets between backticks or use the code button.]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘how to orderby title (title includes alphanumeric characters)?’ is closed to new replies.