reorder SourcePos to beginning for nicer code