Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 28337 invoked from network); 20 Feb 2009 13:10:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2009 13:10:22 -0000 Received: (qmail 58370 invoked by uid 500); 20 Feb 2009 13:10:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 58348 invoked by uid 500); 20 Feb 2009 13:10:22 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 58324 invoked by uid 500); 20 Feb 2009 13:10:21 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 58320 invoked by uid 99); 20 Feb 2009 13:10:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2009 05:10:21 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2009 13:10:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B59CA234C498 for ; Fri, 20 Feb 2009 05:10:00 -0800 (PST) Message-ID: <1167707986.1235135400742.JavaMail.jira@brutus> Date: Fri, 20 Feb 2009 05:10:00 -0800 (PST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-1363) Sort DSL - To be able to sort e.g. the body use some comparator In-Reply-To: <534403285.1235130720661.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-1363. -------------------------------- Resolution: Fixed Committed revision 746225. > Sort DSL - To be able to sort e.g. the body use some comparator > --------------------------------------------------------------- > > Key: CAMEL-1363 > URL: https://issues.apache.org/activemq/browse/CAMEL-1363 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.0.0 > > > Today there is no DSL support to be able to sort the body of a given message. > Lets imagine you read some .txt file with lines of text, and you want that sorted, > Today you need to do that manually. > {code} > from("file://inbox").sort(body().tokenize("\n")).to("bean:processLines"); > {code} > By deault it will sort the body and use a default comparator that sorts by to string representation. > The body will be converted into a List to allow the JDK sorter to be used. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.