From: Mattias Nilsson
Subject: Re: How can I sort symbols in alphabetical order?
Date: 
Message-ID: <1133271370.901701.10540@g49g2000cwa.googlegroups.com>
Kubilay wrote:
> How can I sort symbols in alpahbetical order?

Well, I'm just a beginner, but here's my attempt:

(sort '(car window apple) #'string< :key #'symbol-name)

Note that it both takes and returns a list of symbols.

Mattias.

From: Lars Brinkhoff
Subject: Re: How can I sort symbols in alphabetical order?
Date: 
Message-ID: <85lkz7a7co.fsf@junk.nocrew.org>
"Mattias Nilsson" <········@bredband.net> writes:
> (sort '(car window apple) #'string< :key #'symbol-name)

····@mail.ru (Timofei Shatrov) writes:
> (sort '(car window apple) 
>     (lambda (x y) (string< (symbol-name x) (symbol-name y))))

Note that sort is advertised as a destructive function, and you pass
it a quoted object.
From: Mattias Nilsson
Subject: Re: How can I sort symbols in alphabetical order?
Date: 
Message-ID: <1133273820.734968.310380@g47g2000cwa.googlegroups.com>
Lars Brinkhoff wrote:
> "Mattias Nilsson" <········@bredband.net> writes:
> > (sort '(car window apple) #'string< :key #'symbol-name)
:
> Note that sort is advertised as a destructive function, and you pass
> it a quoted object.

Of course! I intended for my answer to be a template that could
be used in a destructive function. ;)