about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xbin/dtas-tl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dtas-tl b/bin/dtas-tl
index fd5ced9..b682e2b 100755
--- a/bin/dtas-tl
+++ b/bin/dtas-tl
@@ -86,7 +86,7 @@ def do_edit(c)
   orig.each do |track_id|
     edit_idx[track_id] or c.req("tl remove #{track_id}")
   end
-  add.each do |path, after_id|
+  add.reverse_each do |path, after_id|
     cmd = %W(tl add #{path})
     cmd << after_id.to_s if after_id
     c.req(cmd)