Comments on: Sorting and Ordering Nested Data in WordPress: Fun with PHP Arrays and usort() https://wpshout.com/sorting-ordering-nested-data-wordpress-fun-php-arrays-usort/ A hub for advanced WordPress users, developers & savvy business owners. Fri, 02 Sep 2016 13:28:54 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Gentle Introduction to Functional PHP for WordPress Developers: Using filter() and map() on an Array of Posts | WPShout https://wpshout.com/sorting-ordering-nested-data-wordpress-fun-php-arrays-usort/#comment-20336 Tue, 26 Jan 2016 20:17:21 +0000 https://wpshout.com/?p=9113#comment-20336 […] post last week was about filtering through arrays of posts and ordering them. He foreached through arrays, and then used PHP’s usort() function to get a list of […]

]]>
By: Mestika https://wpshout.com/sorting-ordering-nested-data-wordpress-fun-php-arrays-usort/#comment-20335 Wed, 20 Jan 2016 08:22:00 +0000 https://wpshout.com/?p=9113#comment-20335 This is all good as long as retrieve all posts (posts_per_page = -1) but it won’t cut it if you for instance are only interesting in the top 3 of something, which then need to be at SQL level.

It’s just something to keep in mind, especially if you have a lot of data.

But great article and explanation of usort

]]>