> This is my attemot to create a compare object. But I don't know > how to use it together with .sort member function Don't use the .sort property. Use std.algorithm.sort, which has a "less" predicate (that should return a bool). http://dlang.org/phobos/std_algorithm.html#sort