fix default sorting for comparisonlist, and ensure tag ordering is correct for query