fixing documents orderby
edit document