[ENH] intergrate merge changes from @kcha.
[DOC] update docs for new -g option in intersect for specifying custom sort order.