IMongoCursorData.sort

void sort(Bson order) @safe

Before iterating, specify a MongoDB sort order