|
|
@ -56,15 +56,10 @@ var dynamicTable = new Class ({ |
|
|
|
var reverseSort = tr2.getParent().reverseSort; |
|
|
|
var reverseSort = tr2.getParent().reverseSort; |
|
|
|
switch(i) { |
|
|
|
switch(i) { |
|
|
|
case 1: // Name
|
|
|
|
case 1: // Name
|
|
|
|
if(!reverseSort) { |
|
|
|
if(!reverseSort) |
|
|
|
if(tr1.getElements('td')[i].get('html') > tr2.getElements('td')[i].get('html')) |
|
|
|
return tr1.getElements('td')[i].get('html').localeCompare(tr2.getElements('td')[i].get('html')); |
|
|
|
return 1; |
|
|
|
else |
|
|
|
return -1; |
|
|
|
return tr2.getElements('td')[i].get('html').localeCompare(tr1.getElements('td')[i].get('html')); |
|
|
|
} else { |
|
|
|
|
|
|
|
if(tr1.getElements('td')[i].get('html') < tr2.getElements('td')[i].get('html')) |
|
|
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
return -1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
case 2: // Prio
|
|
|
|
case 2: // Prio
|
|
|
|
case 3: // Size
|
|
|
|
case 3: // Size
|
|
|
|
case 4: // Progress
|
|
|
|
case 4: // Progress
|
|
|
|