Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@www.apache.org Received: (qmail 46988 invoked from network); 5 Apr 2005 17:19:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2005 17:19:25 -0000 Received: (qmail 42434 invoked by uid 500); 5 Apr 2005 17:19:20 -0000 Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 42377 invoked by uid 500); 5 Apr 2005 17:19:20 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Users List" Reply-To: "Velocity Users List" Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 42336 invoked by uid 99); 5 Apr 2005 17:19:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from livestoryboard.com (HELO server1.livestoryboard.com) (209.61.132.12) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 05 Apr 2005 10:19:19 -0700 Received: from [127.0.0.1] (livestoryboard.com [209.61.132.12] (may be forged)) (authenticated) by server1.livestoryboard.com (8.11.6/8.11.6) with ESMTP id j35HJkf18015 for ; Tue, 5 Apr 2005 12:19:46 -0500 Message-ID: <4252C893.8090804@koberg.com> Date: Tue, 05 Apr 2005 10:19:15 -0700 From: Robert Koberg User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Velocity Users List Subject: Re: SortedMap/TreeMap in a tool does not sort References: <42527F70.4090605@koberg.com> <42529A35.9030103@stoutstick.com> <42529BBE.8090909@koberg.com> <376e3b1405040510101f357a1d@mail.gmail.com> In-Reply-To: <376e3b1405040510101f357a1d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Shinobu Kawai wrote: > Hi Rob, > > >>I had assumed 'natural order' meant the order I put it in (never used >>SortedMap before...). The question's answers are correct because the >>keys are like q1, q2, q3. > > > Just for you. ;) > http://java.sun.com/j2se/1.5.0/docs/api/java/util/LinkedHashMap.html hmmmm... it seems that has just appeared in my (1.4.2) api... :) thanks, -Rob > > If you're using a version less than 1.4, you can use commons-collections > http://jakarta.apache.org/commons/collections/ > > Best regards, > -- Shinobu > > -- > Shinobu Kawai > --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org