We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 784f4bf commit 654c062Copy full SHA for 654c062
src/admin/trades.ts
@@ -61,7 +61,7 @@ var TradesListController = ($scope : TradesScope, $log : ng.ILogService, subscri
61
headerRowHeight: 20,
62
columnDefs: [
63
{width: 75, field:'time', displayName:'t', cellFilter: 'momentShortDate',
64
- sortingAlgorithm: (a: moment.Moment, b: moment.Moment) => a.diff(b),
+ sortingAlgorithm: (a: moment.Moment, b: moment.Moment) => (moment.isMoment(a) ? a : moment(a)).diff(b),
65
sort: { direction: uiGridConstants.DESC, priority: 1} },
66
{width: 50, field:'price', displayName:'px', cellFilter: 'currency', cellClass: (grid, row, col, rowRenderIndex, colRenderIndex) => {
67
if (row.entity.side === 'K') return (row.entity.price > row.entity.allocprice) ? "sell" : "buy"; else return "";
0 commit comments