arrange_data function

Arrange data with user-specified expression