There are several ways to align dimensions and notes using inference lines, grids, and alignment tools.
Inference Lines
You can align dimensions and notes by using the inference lines that appear when dragging.
Drag the text in dimensions or notes to the new location. Use inference lines to align and position them.
Drag a dimension and "snap" it to the text on another side, as indicated by the dashed inference line. Drag a note and "snap" it to the text of a dimension, as indicated by the dashed inference line.
You can also use the grid:
Grids
You can drag and snap dimensions (not notes) to the grid.
Otherwise, there is also the solution to select the dimensions to align, then click on the icon that appears to open the dimension management tab. All you have to do is click on Align collinear. The advantage is that it also aligns the inclined ribs.