In the latter case the result is a seq containing a single element:  
the vector. There is nothing to sort/it us sorted.

--Steve


On Dec 12, 2008, at 12:14 AM, Oscar Picasso <[email protected]>  
wrote:

>
> user> (sort (re-seq #"\w+" "the quick brown fox"))
> ("brown" "fox" "quick" "the")
>
> but
> user> (sort (re-seq #"q(u(i))?" "the quick brown fox"))
> (["qui" "ui" "i"])
>
> Why it's not sorted on the later case?
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to