Add weight field to both node types.
Added sort functionality by weight to both node types.