{"id":19706737,"url":"https://github.com/unisharp/dndsort","last_synced_at":"2026-06-17T09:31:45.514Z","repository":{"id":57075535,"uuid":"44214911","full_name":"UniSharp/dndsort","owner":"UniSharp","description":"jquery drop and drag sort plugin","archived":false,"fork":false,"pushed_at":"2015-10-14T19:21:07.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-10T12:49:10.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UniSharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-14T00:53:54.000Z","updated_at":"2015-10-14T18:55:23.000Z","dependencies_parsed_at":"2022-08-24T14:55:44.150Z","dependency_job_id":null,"html_url":"https://github.com/UniSharp/dndsort","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Fdndsort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Fdndsort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Fdndsort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Fdndsort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UniSharp","download_url":"https://codeload.github.com/UniSharp/dndsort/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241023574,"owners_count":19896092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T21:36:46.742Z","updated_at":"2026-06-17T09:31:45.482Z","avatar_url":"https://github.com/UniSharp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dndsort\nHelp building sorted list items by jQuery.\n\n## Installation\n\n * this plugin requires jQuery and jQuery-UI\n\n## Initialization\n\n * generate list items :\n\n\t```javascript\n\t\t$('ul#sortable').sortable();\n\n\t\t$('#sortable').dndsort('init', {\n\t\t  data : [],               // set your items\n\t\t  submit_name : 'sorted',  // set sorted input field name\n\t\t  labels : {},             // set labels for new item and buttons\n\t\t  attrs : {},              // set attributes for list and buttons\n\t\t  render : func_render     // set custom rendering function\n\t\t});\n\t```\n\n * generate new item in list\n\n\t```javascript\n\t\t$('#new-data').click(function(){\n\t\t  $('#sortable').dndsort('new');\n\t\t});\n\t```\n\n * generate sorted data\n\n\t```javascript\n\t\t$('#submit').click(function(){\n\t\t  $('#sortable').dndsort('save');\n\t\t});\n\t```\n\n\tthis make input like below :\n\n\t```html\n\t\t\u003cinput type='text' name='sorted' value='sorted_data_in_json'\u003e\n\t```\n\n## Setting Attributes\n\n## Todo\n\n * Add support for not-listed items.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funisharp%2Fdndsort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funisharp%2Fdndsort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funisharp%2Fdndsort/lists"}