Contractors module - tree sorting