See Sorting An Array of Versions.
In reply to Re: a sort question by derby in thread a sort question by Anonymous Monk