E.g., if you have a sorted array of the struct:
struct Item
{
int val;
string property;
}
How would you go about using these with assumeSorted so that you could then search on Item.val?
All the examples of ranges I can find online use arrays of integers.
You need to define a comparison operator: http://dlang.org/operatoroverloading.html#compare
After the comparison operator is defined, all sorting-related functions should work just like with integers.