Requested issues were resolved. Approved this and am merging. * sort the viewports based on the closest orientation as that of measurement * fix: Separate out function for finding viewport alignment --------- Co-authored-by: Arul Mozhi J <arul.mozhi@trenser.com> Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>