removed lambda function from loop as it never changes (#6)
added type hints as the function will not work with non-arrays (#6)
used more attributes to determine the statement order (fixes #6)
Merge pull request #68 from Matthimatiker/feature/6_statement_comparison

Change statement sorting in tests