Rookie PHP question sorting result of custom field

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2010-05-03T18:23:59Z Indexed on 2010/05/03 18:28 UTC
Read the original article Hit count: 361

I use this to pull values from a custom field with several values:

<?php  $mykey_values = get_post_custom_values('services');
                foreach ( $mykey_values as $key => $value ) {
                echo "<li> $value</li>";
                } ?>

I want to sort the output according to the way I have set up the values in the key (alphabetically)

© Stack Overflow or respective owner

Related posts about wordpress-theming

Related posts about php