From 03c84c086c6182eaeb22b0a2a6cd11a5f008912e Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sat, 29 Nov 2014 11:51:57 +0100 Subject: [PATCH] strategies should be order after createdAt ASC --- lib/strategyDb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strategyDb.js b/lib/strategyDb.js index c76b881360..b8f9f3bcc1 100644 --- a/lib/strategyDb.js +++ b/lib/strategyDb.js @@ -16,7 +16,7 @@ function getStrategies() { return knex .select(STRATEGY_COLUMNS) .from('strategies') - .orderBy('created_at', 'desc') + .orderBy('created_at', 'asc') .map(rowToStrategy); }