mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix ascending/descending sort order in backgrid while clicking on the headers. Fixes #2303
This commit is contained in:
committed by
Dave Page
parent
44ce8985e0
commit
8745417926
@@ -144,6 +144,15 @@
|
|||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// if descending order, swap left and right
|
||||||
|
if (order === 1) t = l, l = r, r = t;
|
||||||
|
|
||||||
|
// compare as usual
|
||||||
|
if (l === r) return 0;
|
||||||
|
else if (l < r) return -1;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user