Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ <h3><a name="methods" class="anchor" href="#methods"></a>Methods</h3>
<p>The default sort function is found here
<a href="https://github.com/nwoltman/string-natural-compare">https://github.com/nwoltman/string-natural-compare</a>,
if you want to use your own, <a href="https://github.com/javve/list.js/blob/master/src/sort.js">read the code</a> and
<a href="https://github.com/javve/list.js/blob/master/test/test.sort.js">check out the tests</a>.</p>
<a href="https://github.com/javve/list.js/blob/master/__test__/sort.test.js">check out the tests</a>.</p>

<pre><code class="javascript">listObj.sort('name', { order: "asc" }); // Sorts the list in abc-order based on names
listObj.sort('name', { order: "desc" }); // Sorts the list in zxy-order based on names
Expand Down