From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: how to sort words in a line Date: Wed, 18 Jul 2007 00:43:55 +0200 Message-ID: References: <87r6n7l41m.fsf@thalassa.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184712264 24970 80.91.229.12 (17 Jul 2007 22:44:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2007 22:44:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 18 00:44:22 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IAvmG-0002ag-8j for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jul 2007 00:44:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAvmF-0006ph-QY for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jul 2007 18:44:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAvm2-0006nC-9O for help-gnu-emacs@gnu.org; Tue, 17 Jul 2007 18:44:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAvlz-0006jf-Tk for help-gnu-emacs@gnu.org; Tue, 17 Jul 2007 18:44:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAvlz-0006jc-PP for help-gnu-emacs@gnu.org; Tue, 17 Jul 2007 18:44:03 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAvlz-0006Lv-Bq for help-gnu-emacs@gnu.org; Tue, 17 Jul 2007 18:44:03 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 8035C8D6A5DF for ; Wed, 18 Jul 2007 00:43:48 +0200 (CEST) Original-Received: from [89.59.214.236] (helo=wednesday) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1IAvlk-0004Mj-00 for help-gnu-emacs@gnu.org; Wed, 18 Jul 2007 00:43:48 +0200 In-Reply-To: (Rainer Stengele's message of "Tue\, 17 Jul 2007 19\:57\:17 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX18kvgnexG+J3H01MWd0uCjThWVluw9BIaiHmcai BGMvS/tH/FGR/jRkMFZpJqTn4Xlo3Rl/vswK4mc2rLljvyu+w+ Ailk2sIceoQwvGMRMofg== X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45767 Archived-At: Rainer Stengele wrote: > Wow! Thats quite a piece of code for a not-yet Lisp programmer. > Coming from perl this would be a simple one-liner doing the work. Note that the actual work is in fact one line: (sort (split-string ...) (function string-lessp)) The rest is just input and output. regards, Nikolaj Schumacher