adding ordering feature to the table