Pascal Birchler
e4cbb7d031
General: Introduce a wp_list_sort() helper function.
...
In addition to `wp_list_filter()` for filtering a list of objects, and `wp_list_pluck()` for plucking a certain field out of each object in a list, this new function can be used for sorting a list of objects by specific fields. These functions are now all contained within the new `WP_List_Util()` class and `wp_list_sort()` is used in various parts of core for sorting lists.
Props flixos90, DrewAPicture, jorbin.
Fixes #37128 .
git-svn-id: https://develop.svn.wordpress.org/trunk@38859 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-21 11:11:42 +00:00
..
2016-10-09 01:29:04 +00:00
2016-10-21 10:32:55 +00:00
2016-10-18 20:04:36 +00:00
2015-10-17 19:24:20 +00:00
2016-05-25 18:29:01 +00:00
2016-09-26 17:01:48 +00:00
2016-05-19 02:38:33 +00:00
2016-10-20 05:24:39 +00:00
2016-10-21 11:02:37 +00:00
2016-10-17 08:09:11 +00:00
2016-10-20 18:29:28 +00:00
2016-06-16 09:26:06 +00:00
2015-10-15 01:28:05 +00:00
2016-08-27 08:35:16 +00:00
2015-07-14 03:07:13 +00:00
2016-10-04 10:37:59 +00:00
2016-10-21 11:11:42 +00:00
2016-10-19 09:28:22 +00:00
2016-10-09 01:11:14 +00:00
2016-10-08 22:42:12 +00:00
2016-10-09 01:11:14 +00:00
2016-08-19 13:26:04 +00:00
2016-09-30 03:15:36 +00:00
2016-10-03 07:03:41 +00:00
2016-10-09 01:11:14 +00:00
2016-07-08 14:36:37 +00:00
2016-08-30 03:06:06 +00:00
2016-09-11 18:45:59 +00:00
2016-08-27 08:35:16 +00:00
2016-10-09 01:11:14 +00:00
2016-10-09 01:11:14 +00:00
2016-10-09 01:11:14 +00:00
2016-02-29 22:37:42 +00:00
2016-10-21 05:59:34 +00:00
2016-10-20 18:41:22 +00:00
2016-10-20 05:12:26 +00:00
2016-08-27 08:35:16 +00:00
2016-08-20 17:34:13 +00:00
2016-10-12 15:29:03 +00:00
2016-10-03 18:44:19 +00:00
2016-10-19 18:14:21 +00:00
2016-09-30 22:39:32 +00:00
2016-10-09 01:29:04 +00:00
2016-10-18 20:04:36 +00:00
2016-08-28 17:14:52 +00:00
2015-10-17 18:02:16 +00:00
2016-08-30 14:32:04 +00:00
2016-10-09 01:29:04 +00:00
2016-08-27 08:35:16 +00:00
2016-05-19 02:22:59 +00:00
2016-10-11 03:42:28 +00:00
2016-10-20 05:12:26 +00:00
2015-05-06 02:59:50 +00:00
2016-10-09 01:29:04 +00:00
2016-09-08 23:48:05 +00:00
2016-09-12 05:08:17 +00:00
2013-10-07 14:17:13 +00:00
2016-10-09 01:11:14 +00:00
2016-10-09 01:11:14 +00:00
2016-10-18 20:04:36 +00:00
2016-10-13 22:24:27 +00:00
2016-06-18 10:09:26 +00:00
2015-12-23 19:38:29 +00:00
2016-01-13 23:49:52 +00:00
2016-08-20 02:16:54 +00:00
2016-10-21 11:02:37 +00:00
2016-10-09 01:11:14 +00:00
2015-09-15 08:04:33 +00:00
2016-01-15 10:15:21 +00:00
2016-10-18 20:04:36 +00:00
2016-09-26 17:01:48 +00:00
2016-10-20 02:54:12 +00:00
2016-09-26 17:01:48 +00:00
2016-10-04 00:38:45 +00:00
2016-09-08 03:54:13 +00:00
2016-09-09 00:47:17 +00:00
2016-08-27 08:35:16 +00:00
2016-10-07 21:02:39 +00:00
2016-02-26 00:25:10 +00:00
2016-02-26 02:10:32 +00:00
2016-10-10 06:37:02 +00:00
2014-08-01 20:35:25 +00:00
2016-06-06 21:50:29 +00:00
2016-01-05 20:56:10 +00:00