Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3612DFF41 for ; Tue, 16 Apr 2013 21:27:18 +0000 (UTC) Received: (qmail 72030 invoked by uid 500); 16 Apr 2013 21:27:17 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 71913 invoked by uid 500); 16 Apr 2013 21:27:16 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 71905 invoked by uid 99); 16 Apr 2013 21:27:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 21:27:16 +0000 Date: Tue, 16 Apr 2013 21:27:16 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-4723) sort order different in branch_4x than trunk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-4723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633387#comment-13633387 ] Uwe Schindler commented on SOLR-4723: ------------------------------------- We can fix the bug also in Java 6, because Float.compare(float,float) and Double.compare(double,double) are there since Java 1.4. It is only integer's compare which iss missing. So we should really use the correct Double/Float functions: - [http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Double.html#compare(double, double)] - [http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Float.html#compare(float, float)] > sort order different in branch_4x than trunk > -------------------------------------------- > > Key: SOLR-4723 > URL: https://issues.apache.org/jira/browse/SOLR-4723 > Project: Solr > Issue Type: Bug > Reporter: Robert Muir > Attachments: SOLR-4723_test.patch > > > I will buy a beer to whoever figures out why +0 sorts before -0 in branch_4x, but works correctly in trunk :) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org