Title: Sorting via Loop
Last modified: August 20, 2016

---

# Sorting via Loop

 *  Resolved [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/sorting-via-loop/)
 * I am looking to sort by a date, but that start_date is used within a loop, so:
 *     ```
       {"486":{"post_title":"Seminars","post_name":"seminars","cfs_rules":{"post_types":{"operator":"==","values":["post"]},"user_roles":{"operator":"==","values":["administrator"]},"term_ids":{"operator":"==","values":["10"]}},"cfs_extras":{"hide_editor":"0"},"cfs_fields":[{"id":"9","name":"seminar_info","label":"Seminar Info","type":"loop","notes":"","parent_id":0,"weight":0,"options":{"row_display":"0","row_label":"Loop Row","button_label":"Add Row"}},{"id":"8","name":"room_number","label":"Room Number","type":"text","notes":"","parent_id":9,"weight":1,"options":{"default_value":"","required":"0"}},{"id":"1","name":"start_date","label":"Start Date","type":"date","notes":"","parent_id":9,"weight":2,"options":{"required":"0"}},{"id":"13","name":"end_date","label":"End Date","type":"date","notes":"","parent_id":9,"weight":3,"options":{"required":"0"}},{"id":"2","name":"speaker","label":"Speaker","type":"text","notes":"","parent_id":0,"weight":4,"options":{"default_value":"","required":"0"}},{"id":"3","name":"company","label":"Company","type":"text","notes":"","parent_id":0,"weight":5,"options":{"default_value":"","required":"0"}},{"id":"4","name":"company-url","label":"Company URL","type":"text","notes":"","parent_id":0,"weight":6,"options":{"default_value":"","required":"0"}},{"id":"5","name":"bio","label":"Bio","type":"textarea","notes":"","parent_id":0,"weight":7,"options":{"default_value":"","formatting":"auto_br","required":"0"}}]}}
       ```
   
 * Is it possible?
 * [http://wordpress.org/extend/plugins/custom-field-suite/](http://wordpress.org/extend/plugins/custom-field-suite/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/sorting-via-loop/#post-3404568)
 * Hm, never mind… some reason it wasn’t working now it is using the ‘meta_key’ 
   => ‘start_date’

Viewing 1 replies (of 1 total)

The topic ‘Sorting via Loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 1 reply
 * 1 participant
 * Last reply from: [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/sorting-via-loop/#post-3404568)
 * Status: resolved