diff options
author | Robin Gareus <robin@gareus.org> | 2019-06-21 00:46:23 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-06-21 00:46:23 +0200 |
commit | 632ab8c42187b1ec913191e0398fe7b5b958c33e (patch) | |
tree | 52aa69a669cce8f1108ef7b3161a838801919053 /scripts | |
parent | ad3d68b5b9428d900ee152fcf6a822e3f05098aa (diff) |
NO-OP: whitespace
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/_sort_tracks_by_name.lua | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/scripts/_sort_tracks_by_name.lua b/scripts/_sort_tracks_by_name.lua index 92c9aaaa19..9edad9610c 100644 --- a/scripts/_sort_tracks_by_name.lua +++ b/scripts/_sort_tracks_by_name.lua @@ -1,8 +1,8 @@ ardour { - ["type"] = "EditorAction", - name = "Track Sort", - author = "Ardour Lua Taskforce", - description = [[Sort tracks alphabetically by name]] + ["type"] = "EditorAction", + name = "Track Sort", + author = "Ardour Lua Taskforce", + description = [[Sort tracks alphabetically by name]] } function factory () return function () @@ -12,19 +12,18 @@ function factory () return function () end local tracklist = {} - for t in Session:get_tracks():iter() do - table.insert(tracklist, t) - print (t:name(), t:presentation_info_ptr():order()) - end + for t in Session:get_tracks():iter() do + table.insert(tracklist, t) + end - table.sort(tracklist, tsort) + table.sort(tracklist, tsort) - local pos = 1; - for _, t in ipairs(tracklist) do - t:set_presentation_order(pos) - pos = pos + 1 - end + local pos = 1; + for _, t in ipairs(tracklist) do + t:set_presentation_order(pos) + pos = pos + 1 + end - tracklist = nil - collectgarbage () - end end + tracklist = nil + collectgarbage () +end end |