=0; i--) {
253 | tbody.appendChild(newrows[i]);
254 | }
255 | delete newrows;
256 | },
257 |
258 | /* sort functions
259 | each sort function takes two parameters, a and b
260 | you are comparing a[0] and b[0] */
261 | sort_numeric: function(a,b) {
262 | aa = parseFloat(a[0].replace(/[^0-9.-]/g,''));
263 | if (isNaN(aa)) aa = 0;
264 | bb = parseFloat(b[0].replace(/[^0-9.-]/g,''));
265 | if (isNaN(bb)) bb = 0;
266 | return aa-bb;
267 | },
268 | sort_alpha: function(a,b) {
269 | if (a[0]==b[0]) return 0;
270 | if (a[0] 0 ) {
316 | var q = list[i]; list[i] = list[i+1]; list[i+1] = q;
317 | swap = true;
318 | }
319 | } // for
320 | t--;
321 |
322 | if (!swap) break;
323 |
324 | for(var i = t; i > b; --i) {
325 | if ( comp_func(list[i], list[i-1]) < 0 ) {
326 | var q = list[i]; list[i] = list[i-1]; list[i-1] = q;
327 | swap = true;
328 | }
329 | } // for
330 | b++;
331 |
332 | } // while(swap)
333 | }
334 | }
335 |
336 | /* ******************************************************************
337 | Supporting functions: bundled here to avoid depending on a library
338 | ****************************************************************** */
339 |
340 | // Dean Edwards/Matthias Miller/John Resig
341 |
342 | /* for Mozilla/Opera9 */
343 | if (document.addEventListener) {
344 | document.addEventListener("DOMContentLoaded", sorttable.init, false);
345 | }
346 |
347 | /* for Internet Explorer */
348 | /*@cc_on @*/
349 | /*@if (@_win32)
350 | document.write("
11 |
12 |
13 | IOSTest1
14 |
15 | Test duration: 42.469s
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | testngcase.ios.IOSAppTest |
26 |
27 |
28 |
29 |
30 | case_001xxx
31 | |
32 |
33 | 16.252s
34 | |
35 |
36 |
37 |
38 |
39 |
40 | |
41 |
42 |
43 |
44 |
45 |