Fix rake task v1:repo_doc_count
Enable sorting for array-value fields