mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-20 11:48:31 -06:00
Fix ascending/descending sort order in backgrid while clicking on the headers. Fixes #2303
This commit is contained in:
parent
44ce8985e0
commit
8745417926
@ -144,6 +144,15 @@
|
||||
else
|
||||
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;
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user