diff --git a/app.moon b/app.moon index ac53dfb..9513fe2 100644 --- a/app.moon +++ b/app.moon @@ -25,8 +25,8 @@ class Simplex extends Application [index: "/"]: => if @user - @keys = APIKeys\select "WHERE user_id = ? ORDER BY id ASC", @user.id - @tasks = Tasks\select "WHERE user_id = ? ORDER BY id ASC", @user.id + @keys = APIKeys\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id + @tasks = Tasks\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id unless @keys and #@keys > 0 @keys = {APIKeys\create(@user)}