Subject: Re: Reorder a XML file by distance from a location
From: Mark Thomas <ruby thomaszone.com>
Date: Wed, 25 Jun 2008 05:48:05 +0900
References: 305973306002306021306065306089306119
> So I can compare and sort two items..
>
> May I ask how can I sort the whole stuff?
The solution works for any number of items. sort() uses <=> during the
sorting process, so when you define <=> for your data, you can sort
any number of items.