You're welcome, glad it's sorted :)
Sorry, my fault. The parameter "name" was nonsense. It should be . "ORDER BY post_title ASC");