Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 855179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:02:15+00:00 2026-05-15T08:02:15+00:00

I have tried for some time to work out a way of sorting nested

  • 0

I have tried for some time to work out a way of sorting nested categories with jQuery. I failed to build my own plugin to do this, so I tried to find something that were available already. Tried a few hours now with this one, http://www.jordivila.net/code/js/jquery/ui-widgetTreeList_inheritance/widgetTreeListSample.aspx and cant get it to work.

What are the alternatives of creating a jQuery / jQuery UI script that handles sorting children and parent categories in a way that can be combined with a AJAX PHP backend to handle the actual sorting in the database?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:02:16+00:00Added an answer on May 15, 2026 at 8:02 am

    I used the widget from http://www.jordivila.net/jquery-widget-inheritance.html to sort nested categories and it worked for me.

    Try using this simple html file

    <script src="http://www.jordivila.net/code/js/jquery/ui-widgetTreeList/widgetTreeList.js" type="text/javascript"></script>
    <script src="http://www.jordivila.net/code/js/jquery/ui-widgetTreeList_inheritance/widgetTreeList_Sort.js" type="text/javascript"></script>
    
    
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/ui-lightness/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="http://www.jordivila.net/code/js/jquery/ui-widgetTreeList/widgetTreeList.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
        #treeListSortable {width:300px;}
    </style>
    

        <script type="text/javascript">
            $(document).ready(function() {
            $('#treeListSortable').treeListSortable();
            });
    
        </script>
    
                    <ul id="treeListSortable">
                          <li>Node 1
                            <ul>
                                <li>Node 12</li>
                                <li>Node 9</li>
                                <li>Node 7
                                    <ul>
                                        <li>Node 6</li>
                                        <li>Node 11</li>
                                        <li>Node 10</li>
                                        <li class="ui-treeList-open">Node 8
                                        <ul>
                                            <li>Node 5</li>
                                            <li>Node 2</li>
                                            <li>Node 4</li>
                                            <li>Node 3</li>
                                        </ul>
                                        </li>
                                    </ul>
                                </li>
                                <li>Node 13</li>
                            </ul>
                          </li>
                    </ul>        
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a long time i have tried to work out the best way to
I am very interested in streaming data for web-applications. I have tried out some
I have tried to use some of the widgets in JQuery UI on an
At work I use ClearCase and SourceSafe, but have found some time to do
I'm coding some c# against Active Directory and have tried endlessly to get this
I have been trying for quite a while to work out how to accomplish
I have a need to do some real-time reporting on the functionality of a
This is for the swing experts out there. I have spent considerable time on
I have an application which tries to load some expected registry settings within its
I have some update or something that tries to run every night, and ends

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.