add sort order to dimension definition