xxxxxxxxxx
import std.stdio : writeln;
import std.algorithm.sorting : sort;
struct Dummy {}
struct Foo {
int get(T)()
{
return 42;
}
}
void main()
{
auto foos = [Foo(), Foo(), Foo()];
foos.sort!("a.get!Dummy < b.get!Dummy");
foos.writeln;
}