Fixed order sub-app bug when ordering. Need to document code again and implement directFilter.