Added basic sorting in FlexForm (#1)