0

How can I sort a menu item list by name?

    <menu name="whatever">
        <item name="List 2" href="#"/>
        <item name="List 1" href="#"/>
     </menu>

output:

List1 List2

1
  • 1
    Or server side using whatever you generate the page with, depending on the situation Commented Apr 18, 2014 at 21:34

1 Answer 1

1

It's not possible with the means of HTML only. You probably can try using JavaScript (or some framework on it) if you want do this on client-side. Here is an example for jQuery sorting: http://www.wrichards.com/blog/2009/02/jquery-sorting-elements/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.