Randomised flex-direction property in example.html
Changed method to compare coords of adjacent flex items