2 * This is a sort function for dataTables to sort tables by the status column.
3 * The order should be: online < online/idle < offline
5 jQuery.extend(jQuery.fn.dataTableExt.oSort, {
6 "status-pre": function (a) {
19 "status-asc": function (a, b) {
20 return ((a < b) ? -1 : ((a > b) ? 1 : 0));
23 "status-desc": function (a, b) {
24 return ((a < b) ? 1 : ((a > b) ? -1 : 0));