paulirwin commented on code in PR #897:
URL: https://github.com/apache/lucenenet/pull/897#discussion_r1462005422


##########
src/Lucene.Net.Tests/Util/BaseSortTestCase.cs:
##########
@@ -69,6 +67,7 @@ public int Compare(Entry a, Entry b)
         public virtual void AssertSorted(Entry[] original, Entry[] sorted)
         {
             Assert.AreEqual(original.Length, sorted.Length);
+            // LUCENENET: this code differs significantly from the original 
Java test which used Arrays.sort().
             Entry[] stableSorted = original.OrderBy(e => e, new 
StableEntryComparer()).ToArray();

Review Comment:
   Updated to use Array.Sort and a static readonly singleton instance of the 
comparer.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to