Arc Forumnew | comments | leaders | submitlogin
1 point by parenthesis 6174 days ago | link | parent

Yes:

  (sort (fn (x y) (< (coerce x 'string) (coerce y 'string))) (keys sig))
(As it says in the link, first comment out

  ;(aload "libs.arc")
in as.scm for just the basic arc.arc functions and macros.)


4 points by hakk 6174 days ago | link

Shorter:

    (sort (compare < [coerce _ 'string]) (keys sig))

-----

4 points by fallintothis 6173 days ago | link

Shorter:

  (sort < (keys sig))
< compares symbols as it would strings.

-----