Title: ascending menu array
Last modified: August 19, 2016

---

# ascending menu array

 *  [bnther](https://wordpress.org/support/users/bnther/)
 * (@bnther)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/ascending-menu-array/)
 * I’ve got a custom sidebar menu that I want to sort alphabetically by title.
 * The menu call is:
 * > `<?php wp_nav_menu( array( 'theme_location' => 'member-menu')) ?>`
 * The function is written:
 * > `function register_my_menus() {
   >  register_nav_menus( array( ‘member-menu’ =
   > > __( ‘Member Menu’ ), ‘gallery-menu’ => __( ‘Gallery Menu’ )) ); }`
 * I’m trying to ascend by title:
 * > `. '&orderby=title&order=asc'`
 * I’m thinking that the array should be sorted before I call it — meaning I should
   include it the in the function. But I was unable to get that to work.
 * Any thoughts?

The topic ‘ascending menu array’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [bnther](https://wordpress.org/support/users/bnther/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/ascending-menu-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
