[BZ-1078839] keep DSL senteces ordering
(cherry picked from commit e1f7fa92fb0073abb932fff11f55b8ee4599b4d7)