Skip to content

Commit

Permalink
Revert "Changed tprint to show keys in alphabetic order"
Browse files Browse the repository at this point in the history
This reverts commit 039e557.
  • Loading branch information
nickgammon committed Apr 25, 2010
1 parent 039e557 commit 24ae3c8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/tprint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ require "tprint"
tprint (GetStyleInfo (20))
New version: April 2010 - shows keys in alphabetic order
--]]

require "pairsbykeys"

function tprint (t, indent, done)
-- in case we run it standalone
local Note = Note or print
Expand All @@ -35,7 +31,7 @@ function tprint (t, indent, done)
-- entry point here
done = done or {}
indent = indent or 0
for key, value in pairsByKeys (t) do
for key, value in pairs (t) do
Tell (string.rep (" ", indent)) -- indent it
if type (value) == "table" and not done [value] then
done [value] = true
Expand Down

0 comments on commit 24ae3c8

Please sign in to comment.