mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Docs: Add sortStable example
This commit is contained in:
parent
45a2abcfd9
commit
a2e1c82e2c
@ -56,6 +56,8 @@
|
|||||||
theme : 'blue',
|
theme : 'blue',
|
||||||
// Enable use of the characterEquivalents reference
|
// Enable use of the characterEquivalents reference
|
||||||
sortLocaleCompare : true,
|
sortLocaleCompare : true,
|
||||||
|
// maintain a stable sort (First Name column)
|
||||||
|
sortStable : true,
|
||||||
// if false, upper case sorts BEFORE lower case
|
// if false, upper case sorts BEFORE lower case
|
||||||
ignoreCase : true
|
ignoreCase : true
|
||||||
});
|
});
|
||||||
|
@ -1446,7 +1446,7 @@ From the example function above, you'll end up with something similar to this HT
|
|||||||
This isn't exactly a <a class="external" href="http://en.wikipedia.org/wiki/Unstable_sort#Stability">stable sort</a> because the sort order maintains the original unsorted order when sorting the column in an ascending direction. When sorting the column in a descending order, the opposite of the original unsorted order is returned. If that doesn't make any sense, please refer to <a href="https://github.com/Mottie/tablesorter/issues/419">issue #419</a>.
|
This isn't exactly a <a class="external" href="http://en.wikipedia.org/wiki/Unstable_sort#Stability">stable sort</a> because the sort order maintains the original unsorted order when sorting the column in an ascending direction. When sorting the column in a descending order, the opposite of the original unsorted order is returned. If that doesn't make any sense, please refer to <a href="https://github.com/Mottie/tablesorter/issues/419">issue #419</a>.
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td><a href="example-locale-sort.html">Example</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr id="sortmultisortkey">
|
<tr id="sortmultisortkey">
|
||||||
|
Loading…
Reference in New Issue
Block a user