Title: [Plugin: Custom Field Template] Sort Order not working
Last modified: August 19, 2016

---

# [Plugin: Custom Field Template] Sort Order not working

 *  [scrimu](https://wordpress.org/support/users/scrimu/)
 * (@scrimu)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-sort-order-not-working/)
 * Can someone please tell me why this is not sorting the values when displayed?
 * [Insturmentation]
    sort = asc type = select value = Vibraphone solo # Marimba
   solo # Xylophone solo # Vibraphone and Marimba Duet # Vibraphone and flute # 
   Mallets and percussion ensemble # Vibraphone and clarinet

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

 *  Thread Starter [scrimu](https://wordpress.org/support/users/scrimu/)
 * (@scrimu)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-sort-order-not-working/#post-1306324)
 * Anyone, please?
 *  [Hiroaki Miyashita](https://wordpress.org/support/users/hiroaki-miyashita/)
 * (@hiroaki-miyashita)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-sort-order-not-working/#post-1306328)
 * The `sort` attribute is not for the post edit page but for the output by use 
   of the `[cft]` shortcode. You need to rearrange the `value` attribute manually.
   I will consider to add the sort attribute for the post edit page in the future
   release. Thanks.
 *  [dehuszar](https://wordpress.org/support/users/dehuszar/)
 * (@dehuszar)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-sort-order-not-working/#post-1306396)
 * I am also having this problem. I want to create attributes for multiple video
   elements using custom fields. I require the use of multiple values as multiple
   videos are being entered into a single post.
 * I’m finding that when I use custom fields straight out, they will display in 
   the order they were entered, so if I enter in the values of “apple” “orange” “
   banana”, in that order, they output to:
 *     ```
       0 => "apple"
       1 => "orange"
       2 => "banana"
       ```
   
 * And that works great! Now that I’m trying to use the Custom Field Types plugin
   to clean up the entry process, the order of these entries are getting mangled.
 * Any recommendations as to how I can maintain the order of multiple entries which
   share the same key? Is the plugin sorting them a certain way by default? I’m 
   using the PHP Code system (and it works REALLY well, thank you!), so if there’s
   a way to sort them there, I’ll be happy to implement that.

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

The topic ‘[Plugin: Custom Field Template] Sort Order not working’ is closed to 
new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [dehuszar](https://wordpress.org/support/users/dehuszar/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-sort-order-not-working/#post-1306396)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
