fix doc display and sorter