Add HeaderRegion module, rewrite NestedSort