Introduced Statement Sorting

Introduced Statement Sorting - not done yet