changing from sort_by to order for index and home