changed data type of sort_order to integer