From 9e673c1588278369fda4d7e1587219d1a8df2c68 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 14 May 2016 02:26:06 -0400 Subject: [PATCH] todomvc: Sort todos in display by ID --- js/examples/todo/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/examples/todo/index.js b/js/examples/todo/index.js index 4e4763e..b4bde51 100644 --- a/js/examples/todo/index.js +++ b/js/examples/todo/index.js @@ -65,7 +65,8 @@ function addTodo(title) { id: this.id, checked: this.completed ? "checked" : "", title: this.title - })); + }), + this.id); on message this.ui.event('.toggle', 'change', $e) { this.completed = e.target.checked;