OFArray: Add sorting with options.