Sort « performance « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » performance » Sort 

1. jQuery sort function performance    stackoverflow.com

I'm sorting a list of <li> elements. I adapted a function on a page that I can't link right now. You can see the live site here. Click on ...

2. Is Minus Zero some sort of JavaScript performance trick?    stackoverflow.com

Looking in the jQuery core I found the following code convention:

nth: function(elem, i, match){
    return match[3] - 0 === i;
},
And I was really curious about the snippet match[3] ...

3. More efficient jQuery sort method for DOM elements based on numerical attribute    stackoverflow.com

I have some simple jQuery written to sort some elements based on a numerical attribute as illustrated at http://jsfiddle.net/MikeGrace/Vgavb/

// get array of elements
var myArray = $("#original div");

// sort based ...

4. Is there a more efficient way of sorting elements in JQuery than this?    stackoverflow.com

I asked a question the other day about sorting elements in JQuery based on a data value attached to it. The solution below works but raised another question about the native ...

5. Sort a table fast by its first column with Javascript or jQuery    stackoverflow.com

I have a table which is dynamically populated from FullCalendar. The problem is that FullCalendar does not care about its original order. the table looks like this:

<table id="caltbl">
    <thead>
  ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.