added sort order to grid and now sorts on frontend