Title: SORT THE REPEATABLE FIELDS
Last modified: March 17, 2019

---

# SORT THE REPEATABLE FIELDS

 *  Resolved [dkurth](https://wordpress.org/support/users/dkurth/)
 * (@dkurth)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/sort-the-repeatable-fields/)
 * I have placed the value to sort the field, but the icon to “sort” does not seem
   to be displayed:
 *     ```
       $group_field_id = $cmb->add_field( array(
       	'id'          => 'MMDListsRecord',
       	'type'        => 'group',
       	'description' => __( 'Individual Directory Listings', 'mmd' ),
       	'options'     => array(
       		'group_title'       => __( 'Record {#}', 'mmd' ), // since version 1.1.4, {#} gets replaced by row number
       		'add_button'        => __( 'Add Another Record', 'mmd' ),
       		'remove_button'     => __( 'Remove Record', 'mmd' ),
       		'sortable'          => true,
       		'closed'            => true,
       	),
         'after_group' => 'mmdlist_add_js_for_repeatable_titles',
       ) );
       ```
   
 * It shows up like this: [https://snag.gy/A7MKpV.jpg](https://snag.gy/A7MKpV.jpg)
 * Have I set something wrong?

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [7 years, 2 months ago](https://wordpress.org/support/topic/sort-the-repeatable-fields/#post-11324009)
 * Nothing wrong that i can see. Based off of the info at [https://github.com/CMB2/CMB2/wiki/Field-Types#group](https://github.com/CMB2/CMB2/wiki/Field-Types#group)
   the sorting part is the two arrow buttons in the lower left corner. Do you have
   those appearing for you?
 *  Thread Starter [dkurth](https://wordpress.org/support/users/dkurth/)
 * (@dkurth)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/sort-the-repeatable-fields/#post-11324659)
 * ja i just found those. I was thinking the sort would be above all the posts and
   would have alphabetically orients all the repeatable fields.. like in the standard
   post directory .
 * Since i keep my forms closed with the business name visible, would have been 
   nice to have a similar button that would have ordered them, instead of by order
   of entry or one by one move up a list.
 * Since my fields entry forms can have hundreds of records , it would have made
   it easier to work with.
 * You don’t know of any add on in which i could put something like this up for 
   the field groups do you ?
    -  This reply was modified 7 years, 2 months ago by [dkurth](https://wordpress.org/support/users/dkurth/).
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [7 years, 2 months ago](https://wordpress.org/support/topic/sort-the-repeatable-fields/#post-11326095)
 * No extension I know of to do that type of thing, though I also don’t know of 
   a huge amount of projects that have that many potential records that could use
   something like this either.

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

The topic ‘SORT THE REPEATABLE FIELDS’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/sort-the-repeatable-fields/#post-11326095)
 * Status: resolved