LPS-36303 Add check to SourceFormatter
LPS-36303 Sort