Title: Sort Multiple Fields
Last modified: March 20, 2017

---

# Sort Multiple Fields

 *  [larckco](https://wordpress.org/support/users/larckco/)
 * (@larckco)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sort-multiple-fields/)
 * This form has 67 entries in it, one per county. Each field is the name of one
   of the counties. People assign ‘routes’ through these counties by entering a 
   number in each county field. Everything works with the under Master/Detail but
   I need to sort the list on the contents of the fields (numeric) rather than on
   the field name. Is that possible with so many fields?
 * In the results page:
    [cfdb-html form=”FORM NAME HERE” filter=”submit_time=$_GET(
   st)” trans=”Call=strtoupper(Call)”] Works but needs to sort on the numbers so
   that people will see the numerical sequence of the counties traveled through.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sort-multiple-fields/#post-8941885)
 * Try the NaturalSortByField tranform
    [https://cfdbplugin.com/?page_id=1135](https://cfdbplugin.com/?page_id=1135)
 *  Thread Starter [larckco](https://wordpress.org/support/users/larckco/)
 * (@larckco)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sort-multiple-fields/#post-8947026)
 * Thanks for the reply, I tried NaturalSortByField but it doesn’t seem to work 
   with cfdb-html. I need the data in vertical format to avoid the scroll bars with
   so many entries. I even tried chaining sorts together but no go.
 * Thanks again great plugin but I guess they will just have to sort the county 
   sequence using Excel.
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sort-multiple-fields/#post-8950839)
 * NaturalSortByField, or any transform, works the same with all shortcodes. It 
   does not change how the data is displayed, it orders the entries prior to being
   displayed by the shortcode.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sort Multiple Fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/sort-multiple-fields/#post-8950839)
 * Status: not resolved