bug in std.algoeithm.sort ?

2009-06-04 Thread A.M.
import std.string; import std.array; import std.algorithm; void main() { string[] sa = [TOM,JOE,TOM4,TOM12,TOM6]; sort!(comp)(sa); } bool comp(string x, string y) { string[] s = [x,y]; return isSorted(s); } this code compiles find, but when run gives the following

Re: bug in std.algoeithm.sort ?

2009-06-04 Thread Gide Nwawudu
On Thu, 04 Jun 2009 07:18:33 -0400, A.M. ama...@gmail.com wrote: import std.string; import std.array; import std.algorithm; void main() { string[] sa = [TOM,JOE,TOM4,TOM12,TOM6]; sort!(comp)(sa); } bool comp(string x, string y) { string[] s = [x,y]; return