adding sort by position to Post and Project models