Added Sorting by isDocument