Arc Forumnew | comments | leaders | submitlogin
1 point by absz 6039 days ago | link | parent

The best way to do this is

  (sort (fn (a b)
          (< (tostring:write a)
             (tostring:write b)))
        (keys the-table))
; write will print the list, in that format, to stdout, and tostring captures stdout and puts it in a string, which it returns.


1 point by bOR_ 6039 days ago | link

works like a charm. thanks!

-----