PHPackages                             unisharp/dndsort - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. unisharp/dndsort

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

unisharp/dndsort
================

Help building sorted list items.

0381JavaScript

Since Oct 14Pushed 10y ago4 watchersCompare

[ Source](https://github.com/UniSharp/dndsort)[ Packagist](https://packagist.org/packages/unisharp/dndsort)[ RSS](/packages/unisharp-dndsort/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

dndsort
=======

[](#dndsort)

Help building sorted list items by jQuery.

Installation
------------

[](#installation)

- this plugin requires jQuery and jQuery-UI

Initialization
--------------

[](#initialization)

- generate list items :

    ```
    	$('ul#sortable').sortable();

    	$('#sortable').dndsort('init', {
    	  data : [],               // set your items
    	  submit_name : 'sorted',  // set sorted input field name
    	  labels : {},             // set labels for new item and buttons
    	  attrs : {},              // set attributes for list and buttons
    	  render : func_render     // set custom rendering function
    	});
    ```
- generate new item in list

    ```
    	$('#new-data').click(function(){
    	  $('#sortable').dndsort('new');
    	});
    ```
- generate sorted data

    ```
    	$('#submit').click(function(){
    	  $('#sortable').dndsort('save');
    	});
    ```

    this make input like below :

    ```

    ```

Setting Attributes
------------------

[](#setting-attributes)

Todo
----

[](#todo)

- Add support for not-listed items.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49773ea5050ec1d004a506cc1e11be08d6e87339120b5d223b8921e3f671153c?d=identicon)[g0110280](/maintainers/g0110280)

---

Top Contributors

[![streamtw](https://avatars.githubusercontent.com/u/7333171?v=4)](https://github.com/streamtw "streamtw (3 commits)")

### Embed Badge

![Health badge](/badges/unisharp-dndsort/health.svg)

```
[![Health](https://phpackages.com/badges/unisharp-dndsort/health.svg)](https://phpackages.com/packages/unisharp-dndsort)
```

###  Alternatives

[bigelephant/string

A string helper task with built in classes to easily add to Laravel 4

121.7k](/packages/bigelephant-string)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
