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

  • Home
  • SEARCH
  • 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 7889509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:07:04+00:00 2026-06-03T06:07:04+00:00

As I am trying to work on sorting some data using Jquery, I thought

  • 0

As I am trying to work on sorting some data using Jquery, I thought I would use drag and drop. Later, I visited the jQueryui site. They have ‘drag and drop’ as well as sortable functionality.

Now I implemented ‘drag and drop’ functionality to sort the HTML Table Row with saving their position in DB.

Now I am getting confused, though:

  1. Does Sortable also perform the same function?
  2. Does Sortable work only with UL or OL or LI ? Can it also work with Table Row?
  3. What is the Difference when i drag and drop the rows? (exchanging the position), compared to Sortable (Sorting the rows). Are these different cases? I am really confusing these concepts.
  4. Is it the right way to do sorting with an HTML Table Row ( by Draggable and Droppable as i did it now ) ?
  5. Are there any guidelines when to use Sortable versus Draggable/droppable
  • 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-06-03T06:07:06+00:00Added an answer on June 3, 2026 at 6:07 am

    Sortable works with tables too, see this jsFiddle

    Concerning differences between Sortable and Drag&Drop, they are just answering to two differents needs :

    • sortable is kind of drag&drop but implements all required graphical behaviour for a predefined group of items. When you move an item, all other items are moved accordingly.
    • in the other hand, drag&drop allows you to simply take an item and move it all around (draggable), but you will have to choose in which item you can drop it (droppable).

    With sortable, you are searching for a logical behaviour with sorted items. With drap&drop your are searching for interaction between items.

    For example, organizing your desktop icons is like sortable (moving an icon will move others all around to reorganize them). If you take a folder to put it into another one, it’s like draggable/droppable (taking a folder and droppping it over another one will not reorganize it but trigger an action which will be to move the folder inside the other).

    Take a look at jQuery UI documentation for Sortable and Draggable/Droppable.

    Hope this will help you.

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

Sidebar

Related Questions

I'm trying to canonicalize the representation of some XML data by sorting each element's
I'm trying to use a WebGrid to display data in my model and am
I am trying to use a little jQuery to hide the initial value in
I'm trying to implement a paging and sorting list in ASP.NET MVC without using
I am trying to get the sorting to work for the DataGridView. The sorting
What I am trying to do is to get sorting work for a static
I'm using jqgrid on a page and I'm trying to persist column sorting between
I am trying to come up with the best data structure for use in
I was trying to list using pagination in Codeigniter. I was willing to use
I am trying work out with MERGE statment to Insert / Update Dimension Table

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.