Title: Group sorting bug
Last modified: August 30, 2016

---

# Group sorting bug

 *  [ardalanme](https://wordpress.org/support/users/ardalanme/)
 * (@ardalanme)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/group-sorting-bug/)
 * I’m listing all posts of a custom post type and grouping them under a custom 
   taxonomy. The problem I was having was that there isn’t a Group Orderby setting.
   So I had to come up with my own quick workaround.
    I added the following code
   in postlist.php line 801:
 *     ```
       if ( is_array( $a ) AND isset( $a['title'] ) ) {
       	$a = $a['title'];
       	$b = $b['title'];
       }
       ```
   
 * [https://wordpress.org/plugins/w4-post-list/](https://wordpress.org/plugins/w4-post-list/)

The topic ‘Group sorting bug’ is closed to new replies.

 * ![](https://ps.w.org/w4-post-list/assets/icon-128x128.png?rev=3034626)
 * [W4 Post List](https://wordpress.org/plugins/w4-post-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w4-post-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w4-post-list/)
 * [Active Topics](https://wordpress.org/support/plugin/w4-post-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w4-post-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w4-post-list/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ardalanme](https://wordpress.org/support/users/ardalanme/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/group-sorting-bug/)
 * Status: not resolved