Re: sorting std.container
On Monday, 11 July 2016 at 19:12:13 UTC, ketmar wrote: p.s. i mean simple D dynamic arrays, like `MyType[] arr;`, not std.array.array. ;-) Ok thank you all for the fast help. I will use Dynamic arrys. For this case my code is working. Super language and super forum :-) Thanks!!
sorting std.container
Hello everybody, sorry for my bad english(nativ german). D is a very nice language and easy to learn because i am a c# (only private) developer. The only bad is to find examples is very hard. My question: How can i sort a slist or dlist with custom types and lambda expressions? The sort function from std.algorithm works only with arrays (in my test). Can give anyone an short example? Thanks for your help. George