sorting and multi_query with comments