added sort by file count option